|
||||||||||
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
public class CauchoRemoteAccessor
Common base class for Hessian/Burlap accessors (HessianClientInterceptor and BurlapClientInterceptor), factoring out common properties.
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 |
---|
public CauchoRemoteAccessor()
Method Detail |
---|
public void setUsername(String username)
The username will be sent by Hessian/Burlap via HTTP Basic Authentication.
HessianProxyFactory.setUser(java.lang.String)
,
BurlapProxyFactory.setUser(java.lang.String)
public String getUsername()
public void setPassword(String password)
The password will be sent by Hessian/Burlap via HTTP Basic Authentication.
HessianProxyFactory.setPassword(java.lang.String)
,
BurlapProxyFactory.setPassword(java.lang.String)
public String getPassword()
public void setOverloadEnabled(boolean overloadEnabled)
HessianProxyFactory.setOverloadEnabled(boolean)
,
BurlapProxyFactory.setOverloadEnabled(boolean)
public boolean isOverloadEnabled()
public void afterPropertiesSet() throws MalformedURLException
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
MalformedURLException
public void prepare() throws MalformedURLException
This implementation just checks whether "serviceInterface" and "serviceUrl" have been specified. Concrete initialization is added in HessianClientInterceptor and BurlapClientInterceptor.
MalformedURLException
- if thrown by Hessian/Burlap APIHessianClientInterceptor.prepare()
,
BurlapClientInterceptor.prepare()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |