org.jboss.mq.il.http.servlet
Class HTTPServerILServlet
java.lang.Object
HttpServlet
org.jboss.mq.il.http.servlet.HTTPServerILServlet
- public class HTTPServerILServlet
- extends HttpServlet
This Servlet acts as a proxy to the JMS Server for the HTTP IL clients.
It receives posts from the HTTPServerIL in the form of HTTPILRequests,
invokes the approprate method on the server, and returns a HTTPILResponse.
This also acts as a delegate for the HTTPClientILService, by receiving
POSTS, looking in HTTPILStorageQueue, retrieving HTTPRequests bound for the
client, packaging them in a HTTPILResponse. These requests are generally
long lived to simulate asynch messaging. When the HTTPClientILService POSTS
a HTTPILRequest the payload of the request includes timeout value which represents
the max time the request will last, before returning to the client.
- See Also:
- Serialized Form
Method Summary |
void |
destroy()
|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response)
|
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response)
|
java.lang.String |
getServletInfo()
|
void |
init(ServletConfig config)
|
protected void |
processRequest(HttpServletRequest request,
HttpServletResponse response)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPServerILServlet
public HTTPServerILServlet()
init
public void init(ServletConfig config)
throws ServletException
- Throws:
ServletException
destroy
public void destroy()
processRequest
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- Throws:
ServletException
java.io.IOException
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- Throws:
ServletException
java.io.IOException
doPost
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- Throws:
ServletException
java.io.IOException
getServletInfo
public java.lang.String getServletInfo()