org.activemq.transport.http
Class HttpTunnelServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.activemq.transport.http.HttpTunnelServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
- Direct Known Subclasses:
- HttpEmbeddedTunnelServlet, HttpSpringEmbeddedTunnelServlet
- public class HttpTunnelServlet
- extends HttpServlet
A servlet which handles server side HTTP transport, delegaging to the ActiveMQ broker.
This servlet is designed for being embedded inside an ActiveMQ Broker using an embedded
Jetty or Tomcat instance.
- Version:
- $Revision$
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpTunnelServlet
public HttpTunnelServlet()
init
public void init()
throws ServletException
- Throws:
ServletException
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Throws:
ServletException
IOException
doPost
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Throws:
ServletException
IOException
readRequestBody
protected String readRequestBody(HttpServletRequest request)
throws IOException
- Throws:
IOException
getTransportChannel
protected HttpServerTransportChannel getTransportChannel(HttpServletRequest request)
keepAlivePing
protected void keepAlivePing(HttpServerTransportChannel channel)
- Disable this channel from being auto-disconnected after a timeout period
createTransportChannel
protected HttpServerTransportChannel createTransportChannel()
createWireFormat
protected org.activemq.io.TextWireFormat createWireFormat()
Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.