public class HessianServlet
extends HttpServlet
| Constructor and Description |
|---|
HessianServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
allow(java.lang.String pattern)
Adds an allow rule to the deserializer
Examples: "java.util.*", "com.foo.io.Bean"
|
protected Hessian2Input |
createHessian2Input(java.io.InputStream is) |
void |
deny(java.lang.String pattern)
Adds a deny rule to the deserializer
|
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(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(ServletRequest request,
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.
|
void |
setWhitelist(boolean isWhitelist)
Sets whitelist mode for the deserializer
|
public java.lang.String getServletInfo()
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 setWhitelist(boolean isWhitelist)
public void allow(java.lang.String pattern)
public void deny(java.lang.String pattern)
public void setDebug(boolean isDebug)
public void setLogName(java.lang.String name)
public void init(ServletConfig config)
throws ServletException
ServletExceptionprotected java.lang.ClassLoader getContextClassLoader()
public void service(ServletRequest request,
ServletResponse response)
throws java.io.IOException,
ServletException
java.io.IOExceptionServletExceptionprotected void invoke(java.io.InputStream is,
java.io.OutputStream os,
java.lang.String objectId,
SerializerFactory serializerFactory)
throws java.lang.Exception
java.lang.Exceptionprotected Hessian2Input createHessian2Input(java.io.InputStream is)