Class ServiceRegistryHttpInvokerServiceExporter

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.web.HttpRequestHandler

    public class ServiceRegistryHttpInvokerServiceExporter
    extends org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter
    This class extends the Spring HttpInvokerServiceExporter class to provide the ability to proxy any interface that has a provider in the OpenNMS SOA ServiceRegistry. It must be used in tandem with the ServiceRegistryHttpInvokerProxyFactoryBean because that client class appends the Java interface name to the RemoteInvocation. Otherwise, this class does not have the interface name and cannot pick the correct provider out of the ServiceRegistry.
    Author:
    Seth
    • Field Summary

      • Fields inherited from class org.springframework.remoting.rmi.RemoteInvocationSerializingExporter

        CONTENT_TYPE_SERIALIZED_OBJECT
      • Fields inherited from class org.springframework.remoting.support.RemotingSupport

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ServiceRegistry getServiceRegistry()  
      void handleRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      void setServiceRegistry​(ServiceRegistry serviceRegistry)  
      • Methods inherited from class org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter

        decorateInputStream, decorateOutputStream, readRemoteInvocation, readRemoteInvocation, writeRemoteInvocationResult, writeRemoteInvocationResult
      • Methods inherited from class org.springframework.remoting.rmi.RemoteInvocationSerializingExporter

        afterPropertiesSet, createObjectInputStream, createObjectOutputStream, doReadRemoteInvocation, doWriteRemoteInvocationResult, getContentType, getProxy, isAcceptProxyClasses, prepare, setAcceptProxyClasses, setContentType
      • Methods inherited from class org.springframework.remoting.support.RemoteInvocationBasedExporter

        getRemoteInvocationExecutor, invoke, invokeAndCreateResult, setRemoteInvocationExecutor
      • Methods inherited from class org.springframework.remoting.support.RemoteExporter

        checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, setServiceInterface
      • Methods inherited from class org.springframework.remoting.support.RemotingSupport

        getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
      • Methods inherited from class java.lang.Object

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

      • ServiceRegistryHttpInvokerServiceExporter

        public ServiceRegistryHttpInvokerServiceExporter()
    • Method Detail

      • setServiceRegistry

        public void setServiceRegistry​(ServiceRegistry serviceRegistry)
      • handleRequest

        public void handleRequest​(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws javax.servlet.ServletException,
                                  java.io.IOException
        Specified by:
        handleRequest in interface org.springframework.web.HttpRequestHandler
        Overrides:
        handleRequest in class org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter
        Throws:
        javax.servlet.ServletException
        java.io.IOException