|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.remoting.support.RemoteExporter org.springframework.remoting.caucho.HessianServiceExporter
public class HessianServiceExporter
HTTP request handler 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), autodetecting the corresponding skeleton class. As of Spring 2.0, it is also compatible with the new Hessian 2 protocol (a.k.a. Hessian 3.0.20+), while remaining compatible with older versions.
Note: Hessian services exported with this class can be accessed by any Hessian client, as there isn't any special handling involved.
HessianClientInterceptor
,
HessianProxyFactoryBean
,
BurlapServiceExporter
,
HttpInvokerServiceExporter
,
RmiServiceExporter
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). |
void |
handleRequest(HttpServletRequest request,
HttpServletResponse response)
Processes the incoming Hessian request and creates a Hessian response. |
void |
prepare()
Initialize this service exporter. |
void |
setSendCollectionType(boolean sendCollectionType)
Set whether to send the Java collection type for each serialized collection. |
void |
setSerializerFactory(com.caucho.hessian.io.SerializerFactory serializerFactory)
Specify the Hessian SerializerFactory to use. |
Methods inherited from class org.springframework.remoting.support.RemoteExporter |
---|
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, isRegisterTraceInterceptor, setBeanClassLoader, setRegisterTraceInterceptor, setService, setServiceInterface |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HessianServiceExporter()
Method Detail |
---|
public void setSerializerFactory(com.caucho.hessian.io.SerializerFactory serializerFactory)
This will typically be passed in as an inner bean definition
of type com.caucho.hessian.io.SerializerFactory
,
with custom bean property values applied.
public void setSendCollectionType(boolean sendCollectionType)
public void afterPropertiesSet()
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
public void prepare()
public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
handleRequest
in interface HttpRequestHandler
request
- current HTTP requestresponse
- current HTTP response
ServletException
- in case of general errors
IOException
- in case of I/O errors
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |