@Deprecated public class BurlapClientInterceptor extends UrlBasedRemoteAccessor
org.aopalliance.intercept.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's com.caucho.burlap.server.BurlapServlet
.
RemoteAccessor.setServiceInterface(java.lang.Class)
,
UrlBasedRemoteAccessor.setServiceUrl(java.lang.String)
,
setUsername(java.lang.String)
,
setPassword(java.lang.String)
,
BurlapServiceExporter
,
BurlapProxyFactoryBean
,
com.caucho.burlap.client.BurlapProxyFactory
,
com.caucho.burlap.server.BurlapServlet
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
burlapProxy
Deprecated.
|
private BurlapProxyFactory |
proxyFactory
Deprecated.
|
logger
Constructor and Description |
---|
BurlapClientInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Deprecated.
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
protected RemoteAccessException |
convertBurlapAccessException(java.lang.Throwable ex)
Deprecated.
Convert the given Burlap access exception to an appropriate
Spring RemoteAccessException.
|
protected java.lang.Object |
createBurlapProxy(BurlapProxyFactory proxyFactory)
Deprecated.
Create the Burlap proxy that is wrapped by this interceptor.
|
java.lang.Object |
invoke(MethodInvocation invocation)
Deprecated.
|
void |
prepare()
Deprecated.
Initialize the Burlap proxy for this interceptor.
|
void |
setOverloadEnabled(boolean overloadEnabled)
Deprecated.
Set whether overloaded methods should be enabled for remote invocations.
|
void |
setPassword(java.lang.String password)
Deprecated.
Set the password that this factory should use to access the remote service.
|
void |
setProxyFactory(BurlapProxyFactory proxyFactory)
Deprecated.
Set the BurlapProxyFactory instance to use.
|
void |
setUsername(java.lang.String username)
Deprecated.
Set the username that this factory should use to access the remote service.
|
getServiceUrl, setServiceUrl
getServiceInterface, setServiceInterface
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
private BurlapProxyFactory proxyFactory
private java.lang.Object burlapProxy
public void setProxyFactory(BurlapProxyFactory proxyFactory)
Allows to use an externally configured factory instance, in particular a custom BurlapProxyFactory subclass.
public void setUsername(java.lang.String username)
The username will be sent by Burlap via HTTP Basic Authentication.
com.caucho.burlap.client.BurlapProxyFactory#setUser
public void setPassword(java.lang.String password)
The password will be sent by Burlap via HTTP Basic Authentication.
com.caucho.burlap.client.BurlapProxyFactory#setPassword
public void setOverloadEnabled(boolean overloadEnabled)
com.caucho.burlap.client.BurlapProxyFactory#setOverloadEnabled
public void afterPropertiesSet()
InitializingBean
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class UrlBasedRemoteAccessor
public void prepare() throws RemoteLookupFailureException
RemoteLookupFailureException
- if the service URL is invalidprotected java.lang.Object createBurlapProxy(BurlapProxyFactory proxyFactory) throws java.net.MalformedURLException
proxyFactory
- the proxy factory to usejava.net.MalformedURLException
- if thrown by the proxy factorycom.caucho.burlap.client.BurlapProxyFactory#create
public java.lang.Object invoke(MethodInvocation invocation) throws java.lang.Throwable
java.lang.Throwable
protected RemoteAccessException convertBurlapAccessException(java.lang.Throwable ex)
ex
- the exception to convert