| org.springframework.remoting.support.RemoteInvocationBasedAccessor org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor
All known Subclasses: org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean,
HttpInvokerClientInterceptor | public class HttpInvokerClientInterceptor extends RemoteInvocationBasedAccessor implements MethodInterceptor,HttpInvokerClientConfiguration,BeanClassLoaderAware(Code) | | org.aopalliance.intercept.MethodInterceptor for accessing an
HTTP invoker service. The service URL must be an HTTP URL exposing
an HTTP invoker service.
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 a very extensible and customizable protocol.
It supports the RemoteInvocationFactory mechanism, like RMI invoker,
allowing to include additional invocation attributes (for example,
a security context). Furthermore, it allows to customize request
execution via the
HttpInvokerRequestExecutor strategy.
Can use the JDK's
java.rmi.server.RMIClassLoader to load
classes from a given
HttpInvokerClientInterceptor.setCodebaseUrl codebase , performing
on-demand dynamic code download from a remote location. The codebase
can consist of multiple URLs, separated by spaces. Note that
RMIClassLoader requires a SecurityManager to be set, analogous to
when using dynamic class download with standard RMI!
(See the RMI documentation for details.)
author: Juergen Hoeller since: 1.1 See Also: HttpInvokerClientInterceptor.setServiceUrl See Also: HttpInvokerClientInterceptor.setCodebaseUrl See Also: HttpInvokerClientInterceptor.setRemoteInvocationFactory See Also: HttpInvokerClientInterceptor.setHttpInvokerRequestExecutor See Also: HttpInvokerServiceExporter See Also: HttpInvokerProxyFactoryBean See Also: java.rmi.server.RMIClassLoader |
afterPropertiesSet | public void afterPropertiesSet()(Code) | | |
convertHttpInvokerAccessException | protected RemoteAccessException convertHttpInvokerAccessException(Throwable ex)(Code) | | Convert the given HTTP invoker access exception to an appropriate
Spring RemoteAccessException.
Parameters: ex - the exception to convert the RemoteAccessException to throw |
getBeanClassLoader | final protected ClassLoader getBeanClassLoader()(Code) | | Return the ClassLoader that this accessor operates in,
to be used for deserializing and for generating proxies.
|
getCodebaseUrl | public String getCodebaseUrl()(Code) | | Return the codebase URL to download classes from if not found locally.
|
getHttpInvokerRequestExecutor | public HttpInvokerRequestExecutor getHttpInvokerRequestExecutor()(Code) | | Return the HttpInvokerRequestExecutor used by this remote accessor.
Creates a default SimpleHttpInvokerRequestExecutor if no executor
has been initialized already.
|
|
|