org.apache.cayenne.remote.hessian.service
Class HessianServlet
java.lang.Object
   javax.servlet.GenericServlet
javax.servlet.GenericServlet
       com.caucho.hessian.server.HessianServlet
com.caucho.hessian.server.HessianServlet
           org.apache.cayenne.remote.hessian.service.HessianServlet
org.apache.cayenne.remote.hessian.service.HessianServlet
- All Implemented Interfaces: 
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class HessianServlet 
- extends com.caucho.hessian.server.HessianServlet
An extension of the com.caucho.hessian.server.HessianServlet that
 installs default Cayenne handlers, simplifying web.xml configuration.
 Here is a sample configuration:
 
 
        <servlet>
          <servlet-name>cayenne</servlet-name>
          <servlet-class>org.apache.cayenne.remote.hessian.service.HessianServlet</servlet-class>
        </servlet>
                        
        <servlet-mapping>
          <servlet-name>cayenne</servlet-name>
          <url-pattern>/cayenne</url-pattern>
        </servlet-mapping>
 
 
 Custom service class and interface can be specified in a manner compatible with Hessian
 recommendations, namely via service-class and api-class servlet
 parameters.
- Since:
- 1.2
- See Also:
- Serialized Form
 
 
| Methods inherited from class com.caucho.hessian.server.HessianServlet | 
| getAPIClass, getSerializerFactory, getServletInfo, service, setAPIClass, setDebug, setHome, setHomeAPI, setLogName, setObject, setObjectAPI, setSendCollectionType, setSerializerFactory, setService | 
 
| Methods inherited from class javax.servlet.GenericServlet | 
| getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
HessianServlet
public HessianServlet()
init
public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
- Installs HessianServiceto respond toRemoteServicerequests.
 
- 
- Specified by:
- initin interface- javax.servlet.Servlet
- Overrides:
- initin class- com.caucho.hessian.server.HessianServlet
 
- 
- Throws:
- javax.servlet.ServletException
 
destroy
public void destroy()
- 
- Specified by:
- destroyin interface- javax.servlet.Servlet
- Overrides:
- destroyin class- javax.servlet.GenericServlet
 
- 
 
createService
protected HessianService createService(javax.servlet.ServletConfig config)
                                throws javax.servlet.ServletException
- 
- Throws:
- javax.servlet.ServletException
 
createAPIClass
protected Class createAPIClass(javax.servlet.ServletConfig config)
                        throws javax.servlet.ServletException
- 
- Throws:
- javax.servlet.ServletException
 
Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.