public abstract class CauchoServlet
extends HttpServlet
Constructor and Description |
---|
CauchoServlet() |
Modifier and Type | Method and Description |
---|---|
protected abstract CauchoInput |
createCauchoInput(java.io.InputStream stream) |
protected abstract CauchoOutput |
createCauchoOutput(java.io.OutputStream stream) |
protected java.lang.reflect.Method |
findMethod(java.lang.String methodName) |
protected abstract java.lang.Object |
getService() |
void |
init() |
protected void |
invoke(HttpServletRequest request,
CauchoInput input,
CauchoOutput output) |
protected java.lang.Object |
invoke(java.lang.String url,
java.lang.Object target,
java.lang.reflect.Method method,
java.util.Map headers,
java.lang.Object[] values) |
protected java.lang.String |
mangleMethodName(java.lang.reflect.Method method) |
protected void |
mapMethods(java.lang.Class cls,
java.util.Map methods) |
protected java.lang.Object[] |
readArguments(CauchoInput input,
java.lang.reflect.Method method) |
protected java.util.Map |
readHeaders(CauchoInput input) |
protected void |
service(HttpServletRequest request,
HttpServletResponse response) |
public void init() throws ServletException
ServletException
protected void mapMethods(java.lang.Class cls, java.util.Map methods)
protected java.lang.reflect.Method findMethod(java.lang.String methodName)
protected java.lang.String mangleMethodName(java.lang.reflect.Method method)
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
protected abstract CauchoInput createCauchoInput(java.io.InputStream stream)
protected abstract CauchoOutput createCauchoOutput(java.io.OutputStream stream)
protected abstract java.lang.Object getService()
protected void invoke(HttpServletRequest request, CauchoInput input, CauchoOutput output) throws java.io.IOException
java.io.IOException
protected java.util.Map readHeaders(CauchoInput input) throws java.io.IOException
java.io.IOException
protected java.lang.Object[] readArguments(CauchoInput input, java.lang.reflect.Method method) throws java.io.IOException
java.io.IOException
protected java.lang.Object invoke(java.lang.String url, java.lang.Object target, java.lang.reflect.Method method, java.util.Map headers, java.lang.Object[] values) throws java.lang.Exception
java.lang.Exception