public class ServiceRegistryHttpInvokerServiceExporter
extends org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter
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
.Constructor and Description |
---|
ServiceRegistryHttpInvokerServiceExporter() |
Modifier and Type | Method and Description |
---|---|
ServiceRegistry |
getServiceRegistry() |
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
decorateInputStream, decorateOutputStream, readRemoteInvocation, readRemoteInvocation, writeRemoteInvocationResult, writeRemoteInvocationResult
afterPropertiesSet, createObjectInputStream, createObjectOutputStream, doReadRemoteInvocation, doWriteRemoteInvocationResult, getContentType, getProxy, isAcceptProxyClasses, prepare, setAcceptProxyClasses, setContentType
getRemoteInvocationExecutor, invoke, invokeAndCreateResult, setRemoteInvocationExecutor
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, setServiceInterface
public ServiceRegistryHttpInvokerServiceExporter()
public ServiceRegistry getServiceRegistry()
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public void handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
handleRequest
in interface org.springframework.web.HttpRequestHandler
handleRequest
in class org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter
javax.servlet.ServletException
IOException
Copyright © 2017. All rights reserved.