org.springframework.remoting.httpinvoker
Class HttpInvokerProxyFactoryBean
java.lang.Object
org.springframework.remoting.support.RemotingSupport
org.springframework.remoting.support.RemoteAccessor
org.springframework.remoting.support.UrlBasedRemoteAccessor
org.springframework.remoting.support.RemoteInvocationBasedAccessor
org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor
org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.FactoryBean<java.lang.Object>, org.springframework.beans.factory.InitializingBean, HttpInvokerClientConfiguration
public class HttpInvokerProxyFactoryBean
- extends HttpInvokerClientInterceptor
- implements org.springframework.beans.factory.FactoryBean<java.lang.Object>
FactoryBean
for HTTP invoker proxies. Exposes the proxied service
for use as a bean reference, using the specified service interface.
The service URL must be an HTTP URL exposing an HTTP invoker service.
Optionally, a codebase URL can be specified for on-demand dynamic code download
from a remote location. For details, see HttpInvokerClientInterceptor docs.
Serializes remote invocation objects and deserializes remote invocation
result objects. Uses Java serialization just like RMI, but provides the
same ease of setup as Caucho's HTTP-based Hessian and Burlap protocols.
HTTP invoker is the recommended protocol for Java-to-Java remoting.
It is more powerful and more extensible than Hessian and Burlap, at the
expense of being tied to Java. Nevertheless, it is as easy to set up as
Hessian and Burlap, which is its main advantage compared to RMI.
- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
RemoteAccessor.setServiceInterface(java.lang.Class)
,
UrlBasedRemoteAccessor.setServiceUrl(java.lang.String)
,
HttpInvokerClientInterceptor.setCodebaseUrl(java.lang.String)
,
HttpInvokerClientInterceptor
,
HttpInvokerServiceExporter
,
RmiProxyFactoryBean
,
HessianProxyFactoryBean
,
BurlapProxyFactoryBean
Fields inherited from class org.springframework.remoting.support.RemotingSupport |
logger |
Methods inherited from class org.springframework.remoting.support.RemoteInvocationBasedAccessor |
createRemoteInvocation, getRemoteInvocationFactory, recreateRemoteInvocationResult, setRemoteInvocationFactory |
Methods inherited from class org.springframework.remoting.support.UrlBasedRemoteAccessor |
getServiceUrl, setServiceUrl |
Methods inherited from class org.springframework.remoting.support.RemoteAccessor |
getServiceInterface, 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 |
HttpInvokerProxyFactoryBean
public HttpInvokerProxyFactoryBean()
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in class HttpInvokerClientInterceptor
getObject
public java.lang.Object getObject()
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>