Package com.caucho.hessian.server
Class HessianServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.caucho.hessian.server.HessianServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class HessianServlet
extends javax.servlet.http.HttpServlet
Servlet for serving Hessian services.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Hessian2Input
Class<?>
Gets the api-class.protected ClassLoader
Gets the serializer factory.void
init
(javax.servlet.ServletConfig config) Initialize the service, including the service object.protected void
invoke
(InputStream is, OutputStream os, String objectId, SerializerFactory serializerFactory) void
service
(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) Execute a request.void
setAPIClass
(Class<?> api) Sets the api-class.void
setDebug
(boolean isDebug) Sets the debugging flag.void
Sets the home implementationvoid
setHomeAPI
(Class<?> api) Sets the home api.void
setLogName
(String name) Sets the debugging log name.void
Sets the object implementationvoid
setObjectAPI
(Class<?> api) Sets the object api.void
setSendCollectionType
(boolean sendType) Sets the serializer send collection java type.void
setSerializerFactory
(SerializerFactory factory) Sets the serializer factory.void
setService
(Object service) Sets the service class.Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
Constructor Details
-
HessianServlet
public HessianServlet()
-
-
Method Details
-
getServletInfo
- Specified by:
getServletInfo
in interfacejavax.servlet.Servlet
- Overrides:
getServletInfo
in classjavax.servlet.GenericServlet
-
setHomeAPI
Sets the home api. -
setHome
Sets the home implementation -
setObjectAPI
Sets the object api. -
setObject
Sets the object implementation -
setService
Sets the service class. -
setAPIClass
Sets the api-class. -
getAPIClass
Gets the api-class. -
setSerializerFactory
Sets the serializer factory. -
getSerializerFactory
Gets the serializer factory. -
setSendCollectionType
public void setSendCollectionType(boolean sendType) Sets the serializer send collection java type. -
setDebug
public void setDebug(boolean isDebug) Sets the debugging flag. -
setLogName
Sets the debugging log name. -
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException Initialize the service, including the service object.- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
getContextClassLoader
-
service
public void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws IOException, javax.servlet.ServletException Execute a request. The path-info of the request selects the bean. Once the bean's selected, it will be applied.- Specified by:
service
in interfacejavax.servlet.Servlet
- Overrides:
service
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
-
invoke
protected void invoke(InputStream is, OutputStream os, String objectId, SerializerFactory serializerFactory) throws Exception - Throws:
Exception
-
createHessian2Input
-