Package ch.systemsx.cisd.common.spring
Class HttpInvokerUtils
java.lang.Object
ch.systemsx.cisd.common.spring.HttpInvokerUtils
Utility methods for HTTP Invocations.
This class is used by clients to create service stubs. If a dependency to external libraries is added to this class then build scripts used to build the API jar have to be changed as well.
This class is used by clients to create service stubs. If a dependency to external libraries is added to this class then build scripts used to build the API jar have to be changed as well.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcreateServiceStub(Class<T> serviceInterface, String serviceURL, long serverTimeoutInMillis) Creates a service stub for the specified service interface.static <T> TcreateStreamSupportingServiceStub(Class<T> serviceInterface, String serviceURL, long serverTimeoutInMillis) static final <T> TgetCastedService(org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean httpInvokerProxy) static InetSocketAddresstryFindProxy(String serviceURL) Returns the proxy's inet address for serviceURL, ornull, if no proxy is defined.
-
Field Details
-
provider
-
-
Method Details
-
createServiceStub
public static <T> T createServiceStub(Class<T> serviceInterface, String serviceURL, long serverTimeoutInMillis) Creates a service stub for the specified service interface.- Parameters:
serviceURL- URL providing the service via HTTP tunneling.serverTimeoutInMillis- Service time out in milliseconds. A values of 0 means never timeout.
-
createStreamSupportingServiceStub
-
getCastedService
public static final <T> T getCastedService(org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean httpInvokerProxy) -
tryFindProxy
Returns the proxy's inet address for serviceURL, ornull, if no proxy is defined.
-