com.caucho.hessian.test
Class TestHessianServlet
java.lang.Object
javax.servlet.GenericServlet
com.caucho.hessian.server.HessianServlet
com.caucho.hessian.test.TestHessianServlet
- All Implemented Interfaces:
- Test, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class TestHessianServlet
- extends HessianServlet
- implements Test
The test service is a Hessian 2.0 protocol test for developers of
Hessian 2.0 clients. For a new client the recommended order is:
- See Also:
- Serialized Form
Field Summary |
private java.lang.ThreadLocal<java.io.CharArrayWriter> |
_threadWriter
|
Method Summary |
java.lang.Object |
echo(java.lang.Object value)
Echos the object to the server. |
void |
fault()
Throws an application fault. |
java.lang.String |
hello()
Hello, World. |
void |
nullCall()
Does nothing. |
int |
subtract(int a,
int b)
Subtraction |
Methods inherited from class com.caucho.hessian.server.HessianServlet |
createHessian2Input, getAPIClass, getContextClassLoader, getSerializerFactory, getServletInfo, init, invoke, service, setAPIClass, setDebug, setHome, setHomeAPI, setLogName, setObject, setObjectAPI, setSendCollectionType, setSerializerFactory, setService |
Methods inherited from class javax.servlet.GenericServlet |
destroy, 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 |
_threadWriter
private java.lang.ThreadLocal<java.io.CharArrayWriter> _threadWriter
TestHessianServlet
public TestHessianServlet()
nullCall
public void nullCall()
- Does nothing.
- Specified by:
nullCall
in interface Test
hello
public java.lang.String hello()
- Hello, World.
- Specified by:
hello
in interface Test
subtract
public int subtract(int a,
int b)
- Subtraction
- Specified by:
subtract
in interface Test
echo
public java.lang.Object echo(java.lang.Object value)
- Echos the object to the server.
- Specified by:
echo
in interface Test
fault
public void fault()
throws java.io.IOException
- Throws an application fault.
- Specified by:
fault
in interface Test
- Throws:
java.io.IOException
Copyright 2003-2011. All Rights Reserved.