public class

BurlapClientInterceptor

extends UrlBasedRemoteAccessor
java.lang.Object
   ↳ org.springframework.remoting.support.RemotingSupport
     ↳ org.springframework.remoting.support.RemoteAccessor
       ↳ org.springframework.remoting.support.UrlBasedRemoteAccessor
         ↳ org.springframework.remoting.caucho.BurlapClientInterceptor
Known Direct Subclasses

Class Overview

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.

See Also

Summary

[Expand]
Inherited Fields
From class org.springframework.remoting.support.RemotingSupport
Public Constructors
BurlapClientInterceptor()
Public Methods
void afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
Object invoke(MethodInvocation 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(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.
Protected Methods
RemoteAccessException convertBurlapAccessException(Throwable ex)
Convert the given Burlap access exception to an appropriate Spring RemoteAccessException.
Object createBurlapProxy(BurlapProxyFactory proxyFactory)
Create the Burlap proxy that is wrapped by this interceptor.
[Expand]
Inherited Methods
From class org.springframework.remoting.support.UrlBasedRemoteAccessor
From class org.springframework.remoting.support.RemoteAccessor
From class org.springframework.remoting.support.RemotingSupport
From class java.lang.Object
From interface org.springframework.beans.factory.BeanClassLoaderAware
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public BurlapClientInterceptor ()

Public Methods

public void afterPropertiesSet ()

Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

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.

public Object invoke (MethodInvocation invocation)

Throws
Throwable

public void prepare ()

Initialize the Burlap proxy for this interceptor.

Throws
RemoteLookupFailureException if the service URL is invalid

public void setOverloadEnabled (boolean overloadEnabled)

Set whether overloaded methods should be enabled for remote invocations. Default is "false".

See Also
  • com.caucho.burlap.client.BurlapProxyFactory#setOverloadEnabled

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.

See Also
  • com.caucho.burlap.client.BurlapProxyFactory#setPassword

public void setProxyFactory (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.

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.

See Also
  • com.caucho.burlap.client.BurlapProxyFactory#setUser

Protected Methods

protected RemoteAccessException convertBurlapAccessException (Throwable ex)

Convert the given Burlap access exception to an appropriate Spring RemoteAccessException.

Parameters
ex the exception to convert
Returns
  • the RemoteAccessException to throw

protected Object createBurlapProxy (BurlapProxyFactory proxyFactory)

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
  • com.caucho.burlap.client.BurlapProxyFactory#create