Class 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, or null, if no proxy is defined.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • provider

        public static ch.systemsx.cisd.common.spring.IRemoteSpringBeanProvider provider
    • 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, or null, if no proxy is defined.