Class HttpInvokerUtils

java.lang.Object
ch.systemsx.cisd.common.spring.HttpInvokerUtils

public class HttpInvokerUtils extends 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 Details

  • 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

      public static <T> T createStreamSupportingServiceStub(Class<T> serviceInterface, String serviceURL, long serverTimeoutInMillis)
    • getCastedService

      public static final <T> T getCastedService(org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean httpInvokerProxy)
    • tryFindProxy

      public static InetSocketAddress tryFindProxy(String serviceURL)
      Returns the proxy's inet address for serviceURL, or null, if no proxy is defined.