org.springframework.remoting.caucho
Class CauchoRemoteAccessor

java.lang.Object
  extended by org.springframework.remoting.support.RemoteAccessor
      extended by org.springframework.remoting.support.UrlBasedRemoteAccessor
          extended by org.springframework.remoting.caucho.CauchoRemoteAccessor
All Implemented Interfaces:
InitializingBean
Direct Known Subclasses:
BurlapClientInterceptor, HessianClientInterceptor

public class CauchoRemoteAccessor
extends UrlBasedRemoteAccessor
implements InitializingBean

Common base class for Hessian/Burlap accessors (HessianClientInterceptor and BurlapClientInterceptor), factoring out common properties.

Since:
1.1.4
Author:
Juergen Hoeller
See Also:
HessianClientInterceptor, BurlapClientInterceptor

Field Summary
 
Fields inherited from class org.springframework.remoting.support.RemoteAccessor
logger
 
Constructor Summary
CauchoRemoteAccessor()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
 String getPassword()
           
 String getUsername()
           
 boolean isOverloadEnabled()
           
 void prepare()
          Initialize the underlying Hessian/Burlap proxy for this accessor.
 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 setUsername(String username)
          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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CauchoRemoteAccessor

public CauchoRemoteAccessor()
Method Detail

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 Hessian/Burlap via HTTP Basic Authentication.

See Also:
HessianProxyFactory.setUser(java.lang.String), BurlapProxyFactory.setUser(java.lang.String)

getUsername

public String getUsername()

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 Hessian/Burlap via HTTP Basic Authentication.

See Also:
HessianProxyFactory.setPassword(java.lang.String), BurlapProxyFactory.setPassword(java.lang.String)

getPassword

public String getPassword()

setOverloadEnabled

public void setOverloadEnabled(boolean overloadEnabled)
Set whether overloaded methods should be enabled for remote invocations. Default is false.

See Also:
HessianProxyFactory.setOverloadEnabled(boolean), BurlapProxyFactory.setOverloadEnabled(boolean)

isOverloadEnabled

public boolean isOverloadEnabled()

afterPropertiesSet

public void afterPropertiesSet()
                        throws MalformedURLException
Description copied from interface: InitializingBean
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.

Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
MalformedURLException

prepare

public void prepare()
             throws MalformedURLException
Initialize the underlying Hessian/Burlap proxy for this accessor.

This implementation just checks whether "serviceInterface" and "serviceUrl" have been specified. Concrete initialization is added in HessianClientInterceptor and BurlapClientInterceptor.

Throws:
MalformedURLException - if thrown by Hessian/Burlap API
See Also:
HessianClientInterceptor.prepare(), BurlapClientInterceptor.prepare()


Copyright (c) 2002-2005 The Spring Framework Project.