Package ch.systemsx.cisd.common.spring
Class HttpInvokerUtils
- java.lang.Object
-
- ch.systemsx.cisd.common.spring.HttpInvokerUtils
-
public class HttpInvokerUtils extends java.lang.Object
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.
-
-
Field Summary
Fields Modifier and Type Field Description static ch.systemsx.cisd.common.spring.IRemoteSpringBeanProvider
provider
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
createServiceStub(java.lang.Class<T> serviceInterface, java.lang.String serviceURL, long serverTimeoutInMillis)
Creates a service stub for the specified service interface.static <T> T
createStreamSupportingServiceStub(java.lang.Class<T> serviceInterface, java.lang.String serviceURL, long serverTimeoutInMillis)
static <T> T
getCastedService(org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean httpInvokerProxy)
static java.net.InetSocketAddress
tryFindProxy(java.lang.String serviceURL)
Returns the proxy's inet address for serviceURL, ornull
, if no proxy is defined.
-
-
-
Method Detail
-
createServiceStub
public static <T> T createServiceStub(java.lang.Class<T> serviceInterface, java.lang.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
public static <T> T createStreamSupportingServiceStub(java.lang.Class<T> serviceInterface, java.lang.String serviceURL, long serverTimeoutInMillis)
-
getCastedService
public static final <T> T getCastedService(org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean httpInvokerProxy)
-
tryFindProxy
public static java.net.InetSocketAddress tryFindProxy(java.lang.String serviceURL)
Returns the proxy's inet address for serviceURL, ornull
, if no proxy is defined.
-
-