|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.remoting.support.RemoteAccessor org.springframework.remoting.support.UrlBasedRemoteAccessor org.springframework.remoting.caucho.CauchoRemoteAccessor org.springframework.remoting.caucho.BurlapClientInterceptor
Interceptor 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: Burlap services accessed with this proxy factory do not have to be exported via BurlapServiceExporter, as there isn't any special handling involved. Therefore, you can also access services that are exported via Caucho's BurlapServlet.
RemoteAccessor.setServiceInterface(java.lang.Class)
,
UrlBasedRemoteAccessor.setServiceUrl(java.lang.String)
,
CauchoRemoteAccessor.setUsername(java.lang.String)
,
CauchoRemoteAccessor.setPassword(java.lang.String)
,
BurlapServiceExporter
,
BurlapProxyFactoryBean
,
BurlapProxyFactory
Field Summary |
Fields inherited from class org.springframework.remoting.support.RemoteAccessor |
logger |
Constructor Summary | |
BurlapClientInterceptor()
|
Method Summary | |
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)
|
void |
prepare()
Initialize the Burlap proxy for this interceptor. |
void |
setProxyFactory(com.caucho.burlap.client.BurlapProxyFactory proxyFactory)
Set the BurlapProxyFactory instance to use. |
Methods inherited from class org.springframework.remoting.caucho.CauchoRemoteAccessor |
afterPropertiesSet, getPassword, getUsername, isOverloadEnabled, setOverloadEnabled, setPassword, setUsername |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BurlapClientInterceptor()
Method Detail |
public void setProxyFactory(com.caucho.burlap.client.BurlapProxyFactory proxyFactory)
Allows to use an externally configured factory instance, in particular a custom BurlapProxyFactory subclass.
public void prepare() throws MalformedURLException
prepare
in class CauchoRemoteAccessor
MalformedURLException
- if thrown by Hessian/Burlap APIHessianClientInterceptor.prepare()
,
prepare()
protected Object createBurlapProxy(com.caucho.burlap.client.BurlapProxyFactory proxyFactory) throws MalformedURLException
proxyFactory
- the proxy factory to use
MalformedURLException
- if thrown by the proxy factoryBurlapProxyFactory.create(java.lang.Class, java.lang.String)
public Object invoke(MethodInvocation invocation) throws Throwable
invoke
in interface MethodInterceptor
Throwable
protected RemoteAccessException convertBurlapAccessException(Throwable ex)
ex
- the exception to convert
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |