|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.openspml.v2.transport.RPCRouterServlet
Component Name: org.openspml.v2.transport.RPCRouterServlet
Author(s): Kent Spaulding Description: A message router; that passes on the work to a chain of RPCDispatcher objects. This is the only thing in this package that knows about Servlets - and perhaps should be moved to a util.servlet package... To configure:
Constructor Summary | |
RPCRouterServlet()
|
Method Summary | |
void |
closed(RPCRouterMonitor m)
RPCRouter interface. |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Called by the servlet container in response to a GET. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Called by the servlet container in response to a POST. |
java.lang.String |
getPostDataAsString(javax.servlet.http.HttpServletRequest req)
Get the post data as a String. |
void |
init(javax.servlet.ServletConfig config)
|
static java.lang.Object |
instantiate(java.lang.String classname)
Create an instance of a class given a class name. |
void |
setCharacterEncoding(javax.servlet.http.HttpServletRequest req)
If we're in a Servlet 2.3 environment, have to set some things to get UTF-8 support. |
void |
setMonitor(RPCRouterMonitor sm)
Allow the monitor to be set dynamically. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RPCRouterServlet()
Method Detail |
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
javax.servlet.ServletException
public static java.lang.Object instantiate(java.lang.String classname)
public void setMonitor(RPCRouterMonitor sm)
setMonitor
in interface RPCRouter
sm
- public void closed(RPCRouterMonitor m)
closed
in interface RPCRouter
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public java.lang.String getPostDataAsString(javax.servlet.http.HttpServletRequest req) throws java.io.IOException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void setCharacterEncoding(javax.servlet.http.HttpServletRequest req)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |