org.springframework.remoting.caucho
Class HessianServiceExporter

java.lang.Object
  extended byorg.springframework.remoting.support.RemoteExporter
      extended byorg.springframework.remoting.caucho.HessianServiceExporter
All Implemented Interfaces:
Controller, InitializingBean

public class HessianServiceExporter
extends RemoteExporter
implements Controller

Web controller that exports the specified service bean as Hessian service endpoint, accessible via a Hessian proxy.

Hessian is a slim, binary RPC protocol. For information on Hessian, see the Hessian website

This exporter will work with both Hessian 2.x and 3.x (respectively Resin 2.x and 3.x), auto-detecting the corresponding skeleton class.

Note: Hessian services exported with this class can be accessed by any Hessian client, as there isn't any special handling involved.

Since:
13.05.2003
Author:
Juergen Hoeller
See Also:
HessianProxyFactoryBean

Field Summary
 
Fields inherited from class org.springframework.remoting.support.RemoteExporter
logger
 
Constructor Summary
HessianServiceExporter()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
 ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process the incoming Hessian request and create a Hessian response.
 
Methods inherited from class org.springframework.remoting.support.RemoteExporter
getProxyForService, getService, getServiceInterface, setService, setServiceInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HessianServiceExporter

public HessianServiceExporter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
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
Overrides:
afterPropertiesSet in class RemoteExporter
Throws:
java.lang.Exception

handleRequest

public ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws java.lang.Exception
Process the incoming Hessian request and create a Hessian response.

Specified by:
handleRequest in interface Controller
Parameters:
request - current HTTP request
response - current HTTP response
Returns:
a ModelAndView to render, or null if handled directly
Throws:
java.lang.Exception - in case of errors


Copyright (C) 2003-2004 The Spring Framework Project.