类 BurlapClientInterceptor
- java.lang.Object
- org.springframework.remoting.support.RemotingSupport
- org.springframework.remoting.support.RemoteAccessor
- org.springframework.remoting.support.UrlBasedRemoteAccessor
- org.springframework.remoting.caucho.BurlapClientInterceptor
- 所有已实现的接口:
Advice
,Interceptor
,MethodInterceptor
,Aware
,BeanClassLoaderAware
,InitializingBean
- 直接已知子类:
BurlapProxyFactoryBean
@Deprecated public class BurlapClientInterceptor extends UrlBasedRemoteAccessor implements MethodInterceptor
已过时。as of Spring 4.0, since Burlap hasn't evolved in years and is effectively retired (in contrast to its sibling Hessian)MethodInterceptor
for 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
.- 从以下版本开始:
- 29.09.2003
- 作者:
- Juergen Hoeller
- 另请参阅:
RemoteAccessor.setServiceInterface(java.lang.Class<?>)
,UrlBasedRemoteAccessor.setServiceUrl(java.lang.String)
,setUsername(java.lang.String)
,setPassword(java.lang.String)
,BurlapServiceExporter
,BurlapProxyFactoryBean
,BurlapProxyFactory
,BurlapServlet
字段概要
从类继承的字段 org.springframework.remoting.support.RemotingSupport
logger
构造器概要
构造器 构造器 说明 BurlapClientInterceptor()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
已过时。Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.protected RemoteAccessException
convertBurlapAccessException(Throwable ex)
已过时。Convert the given Burlap access exception to an appropriate Spring RemoteAccessException.protected Object
createBurlapProxy(com.caucho.burlap.client.BurlapProxyFactory proxyFactory)
已过时。Create the Burlap proxy that is wrapped by this interceptor.Object
invoke(MethodInvocation invocation)
已过时。Implement this method to perform extra treatments before and after the invocation.void
prepare()
已过时。Initialize the Burlap proxy for this interceptor.void
setOverloadEnabled(boolean overloadEnabled)
已过时。Set whether overloaded methods should be enabled for remote invocations.void
setPassword(String password)
已过时。Set the password that this factory should use to access the remote service.void
setProxyFactory(com.caucho.burlap.client.BurlapProxyFactory proxyFactory)
已过时。Set the BurlapProxyFactory instance to use.void
setUsername(String username)
已过时。Set the username that this factory should use to access the remote service.从类继承的方法 org.springframework.remoting.support.UrlBasedRemoteAccessor
getServiceUrl, setServiceUrl
从类继承的方法 org.springframework.remoting.support.RemoteAccessor
getServiceInterface, setServiceInterface
从类继承的方法 org.springframework.remoting.support.RemotingSupport
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
构造器详细资料
BurlapClientInterceptor
public BurlapClientInterceptor()
已过时。
方法详细资料
setProxyFactory
public void setProxyFactory(com.caucho.burlap.client.BurlapProxyFactory proxyFactory)
已过时。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)
已过时。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.
- 另请参阅:
BurlapProxyFactory.setUser(java.lang.String)
setPassword
public void setPassword(String password)
已过时。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.
- 另请参阅:
BurlapProxyFactory.setPassword(java.lang.String)
setOverloadEnabled
public void setOverloadEnabled(boolean overloadEnabled)
已过时。Set whether overloaded methods should be enabled for remote invocations. Default is "false".- 另请参阅:
BurlapProxyFactory.setOverloadEnabled(boolean)
afterPropertiesSet
public void afterPropertiesSet()
已过时。从接口复制的说明:InitializingBean
Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
prepare
public void prepare() throws RemoteLookupFailureException
已过时。Initialize the Burlap proxy for this interceptor.- 抛出:
RemoteLookupFailureException
- if the service URL is invalid
createBurlapProxy
protected Object createBurlapProxy(com.caucho.burlap.client.BurlapProxyFactory proxyFactory) throws MalformedURLException
已过时。Create the Burlap proxy that is wrapped by this interceptor.- 参数:
proxyFactory
- the proxy factory to use- 返回:
- the Burlap proxy
- 抛出:
MalformedURLException
- if thrown by the proxy factory- 另请参阅:
BurlapProxyFactory.create(java.lang.String)
invoke
public Object invoke(MethodInvocation invocation) throws Throwable
已过时。从接口复制的说明:MethodInterceptor
Implement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invokeJoinpoint.proceed()
.- 指定者:
invoke
在接口中MethodInterceptor
- 参数:
invocation
- the method invocation joinpoint- 返回:
- the result of the call to
Joinpoint.proceed()
; might be intercepted by the interceptor - 抛出:
Throwable
- if the interceptors or the target object throws an exception
convertBurlapAccessException
protected RemoteAccessException convertBurlapAccessException(Throwable ex)
已过时。Convert the given Burlap access exception to an appropriate Spring RemoteAccessException.- 参数:
ex
- the exception to convert- 返回:
- the RemoteAccessException to throw