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 Hessian2InputClass<?>Gets the api-class.protected ClassLoaderGets the serializer factory.voidinit(javax.servlet.ServletConfig config) Initialize the service, including the service object.protected voidinvoke(InputStream is, OutputStream os, String objectId, SerializerFactory serializerFactory) voidservice(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) Execute a request.voidsetAPIClass(Class<?> api) Sets the api-class.voidsetDebug(boolean isDebug) Sets the debugging flag.voidSets the home implementationvoidsetHomeAPI(Class<?> api) Sets the home api.voidsetLogName(String name) Sets the debugging log name.voidSets the object implementationvoidsetObjectAPI(Class<?> api) Sets the object api.voidsetSendCollectionType(boolean sendType) Sets the serializer send collection java type.voidsetSerializerFactory(SerializerFactory factory) Sets the serializer factory.voidsetService(Object service) Sets the service class.Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods 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:
getServletInfoin interfacejavax.servlet.Servlet- Overrides:
getServletInfoin 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:
initin interfacejavax.servlet.Servlet- Overrides:
initin 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:
servicein interfacejavax.servlet.Servlet- Overrides:
servicein classjavax.servlet.http.HttpServlet- Throws:
IOExceptionjavax.servlet.ServletException
-
invoke
protected void invoke(InputStream is, OutputStream os, String objectId, SerializerFactory serializerFactory) throws Exception - Throws:
Exception
-
createHessian2Input
-