public class HessianServlet
extends javax.servlet.GenericServlet
Constructor and Description |
---|
HessianServlet() |
Modifier and Type | Method and Description |
---|---|
protected Hessian2Input |
createHessian2Input(java.io.InputStream is) |
java.lang.Class |
getAPIClass()
Gets the api-class.
|
protected java.lang.ClassLoader |
getContextClassLoader() |
SerializerFactory |
getSerializerFactory()
Gets the serializer factory.
|
java.lang.String |
getServletInfo() |
void |
init(javax.servlet.ServletConfig config)
Initialize the service, including the service object.
|
protected void |
invoke(java.io.InputStream is,
java.io.OutputStream os,
java.lang.String objectId,
SerializerFactory serializerFactory) |
void |
service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Execute a request.
|
void |
setAPIClass(java.lang.Class api)
Sets the api-class.
|
void |
setDebug(boolean isDebug)
Sets the debugging flag.
|
void |
setHome(java.lang.Object home)
Sets the home implementation
|
void |
setHomeAPI(java.lang.Class api)
Sets the home api.
|
void |
setLogName(java.lang.String name)
Sets the debugging log name.
|
void |
setObject(java.lang.Object object)
Sets the object implementation
|
void |
setObjectAPI(java.lang.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(java.lang.Object service)
Sets the service class.
|
public java.lang.String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
public void setHomeAPI(java.lang.Class api)
public void setHome(java.lang.Object home)
public void setObjectAPI(java.lang.Class api)
public void setObject(java.lang.Object object)
public void setService(java.lang.Object service)
public void setAPIClass(java.lang.Class api)
public java.lang.Class getAPIClass()
public void setSerializerFactory(SerializerFactory factory)
public SerializerFactory getSerializerFactory()
public void setSendCollectionType(boolean sendType)
public void setDebug(boolean isDebug)
public void setLogName(java.lang.String name)
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected java.lang.ClassLoader getContextClassLoader()
public void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws java.io.IOException, javax.servlet.ServletException
service
in interface javax.servlet.Servlet
service
in class javax.servlet.GenericServlet
java.io.IOException
javax.servlet.ServletException
protected void invoke(java.io.InputStream is, java.io.OutputStream os, java.lang.String objectId, SerializerFactory serializerFactory) throws java.lang.Exception
java.lang.Exception
protected Hessian2Input createHessian2Input(java.io.InputStream is)