mx4j.tools.remote.caucho

Class CauchoServlet

Known Direct Subclasses:
BurlapServlet, HessianServlet

public abstract class CauchoServlet
extends HttpServlet

Version:
$Revision: 1.4 $

Method Summary

protected CauchoInput
createCauchoInput(InputStream stream)
protected CauchoOutput
createCauchoOutput(OutputStream stream)
protected Method
findMethod(String methodName)
protected Object
getService()
void
init()
protected void
invoke(HttpServletRequest request, CauchoInput input, CauchoOutput output)
protected Object
invoke(String url, Object target, Method method, Map headers, Object[] values)
protected String
mangleMethodName(Method method)
protected void
mapMethods(Class cls, Map methods)
protected Object[]
readArguments(CauchoInput input, Method method)
protected Map
readHeaders(CauchoInput input)
protected void
service(HttpServletRequest request, HttpServletResponse response)

Method Details

createCauchoInput

protected CauchoInput createCauchoInput(InputStream stream)


createCauchoOutput

protected CauchoOutput createCauchoOutput(OutputStream stream)


findMethod

protected Method findMethod(String methodName)


getService

protected Object getService()


init

public void init()
            throws ServletException


invoke

protected void invoke(HttpServletRequest request,
                      CauchoInput input,
                      CauchoOutput output)
            throws IOException


invoke

protected Object invoke(String url,
                        Object target,
                        Method method,
                        Map headers,
                        Object[] values)
            throws Exception


mangleMethodName

protected String mangleMethodName(Method method)


mapMethods

protected void mapMethods(Class cls,
                          Map methods)


readArguments

protected Object[] readArguments(CauchoInput input,
                                 Method method)
            throws IOException


readHeaders

protected Map readHeaders(CauchoInput input)
            throws IOException


service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
            throws ServletException,
                   IOException


Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.