|
|||||||||||
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.HessianClientInterceptor
Interceptor for accessing a Hessian service. Supports authentication via username and password. The service URL must be an HTTP URL exposing a Hessian service.
Hessian is a slim, binary RPC protocol. For information on Hessian, see the Hessian website
Note: Hessian services accessed with this proxy factory do not have to be exported via HessianServiceExporter, as there isn't any special handling involved. Therefore, you can also access services that are exported via Caucho's HessianServlet.
RemoteAccessor.setServiceInterface(java.lang.Class)
,
UrlBasedRemoteAccessor.setServiceUrl(java.lang.String)
,
setUsername(java.lang.String)
,
setPassword(java.lang.String)
,
HessianServiceExporter
,
HessianProxyFactoryBean
,
HessianProxyFactory
Field Summary |
Fields inherited from class org.springframework.remoting.support.RemoteAccessor |
logger |
Constructor Summary | |
HessianClientInterceptor()
|
Method Summary | |
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
protected RemoteAccessException |
convertHessianAccessException(Throwable ex)
Convert the given Hessian access exception to an appropriate Spring RemoteAccessException. |
protected Object |
createHessianProxy(com.caucho.hessian.client.HessianProxyFactory proxyFactory)
Create the Hessian proxy that is wrapped by this interceptor. |
Object |
invoke(MethodInvocation invocation)
|
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 HessianClientInterceptor()
Method Detail |
public void setUsername(String username)
The username will be sent by Hessian via HTTP Basic Authentication.
HessianProxyFactory.setUser(java.lang.String)
public void setPassword(String password)
The password will be sent by Hessian via HTTP Basic Authentication.
HessianProxyFactory.setPassword(java.lang.String)
public void setOverloadEnabled(boolean overloadEnabled)
HessianProxyFactory.setOverloadEnabled(boolean)
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
protected Object createHessianProxy(com.caucho.hessian.client.HessianProxyFactory proxyFactory) throws MalformedURLException
proxyFactory
- the proxy factory to use
MalformedURLException
- if thrown by the proxy factoryHessianProxyFactory.create(java.lang.Class, java.lang.String)
public Object invoke(MethodInvocation invocation) throws Throwable
invoke
in interface MethodInterceptor
Throwable
protected RemoteAccessException convertHessianAccessException(Throwable ex)
ex
- the exception to convert
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |