Class BurlapClientInterceptor
- java.lang.Object
- org.springframework.remoting.support.RemotingSupport
- org.springframework.remoting.support.RemoteAccessor
- org.springframework.remoting.support.UrlBasedRemoteAccessor
- org.springframework.remoting.caucho.BurlapClientInterceptor
- All Implemented Interfaces:
Advice,Interceptor,MethodInterceptor,Aware,BeanClassLoaderAware,InitializingBean
- Direct Known Subclasses:
BurlapProxyFactoryBean
@Deprecated public class BurlapClientInterceptor extends UrlBasedRemoteAccessor implements MethodInterceptor
Deprecated.as of Spring 4.0, since Burlap hasn't evolved in years and is effectively retired (in contrast to its sibling Hessian)MethodInterceptorfor accessing a Burlap service. Supports authentication via username and password. The service URL must be an HTTP URL exposing a Burlap service.Burlap is a slim, XML-based RPC protocol. For information on Burlap, see the Burlap website
Note: There is no requirement for services accessed with this proxy factory to have been exported using Spring's
BurlapServiceExporter, as there is no special handling involved. As a consequence, you can also access services that have been exported using Caucho'sBurlapServlet.- Since:
- 29.09.2003
- Author:
- Juergen Hoeller
- See Also:
RemoteAccessor.setServiceInterface(java.lang.Class<?>),UrlBasedRemoteAccessor.setServiceUrl(java.lang.String),setUsername(java.lang.String),setPassword(java.lang.String),BurlapServiceExporter,BurlapProxyFactoryBean,BurlapProxyFactory,BurlapServlet
Field Summary
Fields inherited from class org.springframework.remoting.support.RemotingSupport
logger
Constructor Summary
Constructors Constructor Description BurlapClientInterceptor()Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterPropertiesSet()Deprecated.Invoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.protected RemoteAccessExceptionconvertBurlapAccessException(Throwable ex)Deprecated.Convert the given Burlap access exception to an appropriate Spring RemoteAccessException.protected ObjectcreateBurlapProxy(com.caucho.burlap.client.BurlapProxyFactory proxyFactory)Deprecated.Create the Burlap proxy that is wrapped by this interceptor.Objectinvoke(MethodInvocation invocation)Deprecated.Implement this method to perform extra treatments before and after the invocation.voidprepare()Deprecated.Initialize the Burlap proxy for this interceptor.voidsetOverloadEnabled(boolean overloadEnabled)Deprecated.Set whether overloaded methods should be enabled for remote invocations.voidsetPassword(String password)Deprecated.Set the password that this factory should use to access the remote service.voidsetProxyFactory(com.caucho.burlap.client.BurlapProxyFactory proxyFactory)Deprecated.Set the BurlapProxyFactory instance to use.voidsetUsername(String username)Deprecated.Set the username that this factory should use to access the remote service.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
Constructor Detail
BurlapClientInterceptor
public BurlapClientInterceptor()
Deprecated.
Method Detail
setProxyFactory
public void setProxyFactory(com.caucho.burlap.client.BurlapProxyFactory proxyFactory)
Deprecated.Set the BurlapProxyFactory instance to use. If not specified, a default BurlapProxyFactory will be created.Allows to use an externally configured factory instance, in particular a custom BurlapProxyFactory subclass.
setUsername
public void setUsername(String username)
Deprecated.Set the username that this factory should use to access the remote service. Default is none.The username will be sent by Burlap via HTTP Basic Authentication.
- See Also:
BurlapProxyFactory.setUser(java.lang.String)
setPassword
public void setPassword(String password)
Deprecated.Set the password that this factory should use to access the remote service. Default is none.The password will be sent by Burlap via HTTP Basic Authentication.
- See Also:
BurlapProxyFactory.setPassword(java.lang.String)
setOverloadEnabled
public void setOverloadEnabled(boolean overloadEnabled)
Deprecated.Set whether overloaded methods should be enabled for remote invocations. Default is "false".- See Also:
BurlapProxyFactory.setOverloadEnabled(boolean)
afterPropertiesSet
public void afterPropertiesSet()
Deprecated.Description copied from interface:InitializingBeanInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classUrlBasedRemoteAccessor
prepare
public void prepare() throws RemoteLookupFailureException
Deprecated.Initialize the Burlap proxy for this interceptor.- Throws:
RemoteLookupFailureException- if the service URL is invalid
createBurlapProxy
protected Object createBurlapProxy(com.caucho.burlap.client.BurlapProxyFactory proxyFactory) throws MalformedURLException
Deprecated.Create the Burlap proxy that is wrapped by this interceptor.- Parameters:
proxyFactory- the proxy factory to use- Returns:
- the Burlap proxy
- Throws:
MalformedURLException- if thrown by the proxy factory- See Also:
BurlapProxyFactory.create(java.lang.String)
invoke
public Object invoke(MethodInvocation invocation) throws Throwable
Deprecated.Description copied from interface:MethodInterceptorImplement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invokeJoinpoint.proceed().- Specified by:
invokein interfaceMethodInterceptor- Parameters:
invocation- the method invocation joinpoint- Returns:
- the result of the call to
Joinpoint.proceed(); might be intercepted by the interceptor - Throws:
Throwable- if the interceptors or the target object throws an exception
convertBurlapAccessException
protected RemoteAccessException convertBurlapAccessException(Throwable ex)
Deprecated.Convert the given Burlap access exception to an appropriate Spring RemoteAccessException.- Parameters:
ex- the exception to convert- Returns:
- the RemoteAccessException to throw