Domanda

Is there any setting in Apache Chemistry to force Apache HTTP Client for connections instead of default Java HTTP functionality?

In package org.apache.chemistry.opencmis.client.bindings.spi.http there is ApacheClientHttpInvoker class that does what I need but I dont know how to use it without source code modification?

I'm asking this because Lotus Notes 9 has bug in its JVM and java.net.HttpURLConnection always throws NullPointerException...

Thank you for assistance.

È stato utile?

Soluzione

Set the session parameter HTTP_INVOKER_CLASS to "org.apache.chemistry.opencmis.client.bindings.spi.http.ApacheClientHttpInvoker" and make sure that you have the Apache HTTP Client jars (tested with 4.2.5) in your classpath.

For more session parameters see: http://chemistry.apache.org/java/0.10.0/maven/apidocs/org/apache/chemistry/opencmis/commons/SessionParameter.html

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top