Package org.opennms.core.spring.web
Class ServiceRegistryHttpInvokerServiceExporter
- java.lang.Object
-
- org.springframework.remoting.support.RemotingSupport
-
- org.springframework.remoting.support.RemoteExporter
-
- org.springframework.remoting.support.RemoteInvocationBasedExporter
-
- org.springframework.remoting.rmi.RemoteInvocationSerializingExporter
-
- org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter
-
- org.opennms.core.spring.web.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 SpringHttpInvokerServiceExporter
class to provide the ability to proxy any interface that has a provider in the OpenNMS SOAServiceRegistry
. It must be used in tandem with theServiceRegistryHttpInvokerProxyFactoryBean
because that client class appends the Java interface name to theRemoteInvocation
. Otherwise, this class does not have the interface name and cannot pick the correct provider out of theServiceRegistry
.- Author:
- Seth
-
-
Constructor Summary
Constructors Constructor Description ServiceRegistryHttpInvokerServiceExporter()
-
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
-
-
-
-
Method Detail
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
-
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 interfaceorg.springframework.web.HttpRequestHandler
- Overrides:
handleRequest
in classorg.springframework.remoting.httpinvoker.HttpInvokerServiceExporter
- Throws:
javax.servlet.ServletException
java.io.IOException
-
-