org.apache.activemq.transport.http
Class HttpTunnelServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.activemq.transport.http.HttpTunnelServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
HttpEmbeddedTunnelServlet

public class HttpTunnelServlet
extends HttpServlet

A servlet which handles server side HTTP transport, delegating to the ActiveMQ broker. This servlet is designed for being embedded inside an ActiveMQ Broker using an embedded Jetty or Tomcat instance.

See Also:
Serialized Form

Constructor Summary
HttpTunnelServlet()
           
 
Method Summary
protected  BlockingQueueTransport createTransportChannel()
           
protected  BlockingQueueTransport createTransportChannel(HttpServletRequest request, HttpServletResponse response)
           
protected  TextWireFormat createWireFormat()
           
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
           
protected  void doHead(HttpServletRequest request, HttpServletResponse response)
           
protected  void doOptions(HttpServletRequest request, HttpServletResponse response)
           
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
protected  BlockingQueueTransport getTransportChannel(HttpServletRequest request, HttpServletResponse response)
           
 void init()
           
protected  String readRequestBody(HttpServletRequest request)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, 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

HttpTunnelServlet

public HttpTunnelServlet()
Method Detail

init

public void init()
          throws ServletException
Overrides:
init in class GenericServlet
Throws:
ServletException

doOptions

protected void doOptions(HttpServletRequest request,
                         HttpServletResponse response)
                  throws ServletException,
                         IOException
Overrides:
doOptions in class HttpServlet
Throws:
ServletException
IOException

doHead

protected void doHead(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Overrides:
doHead in class HttpServlet
Throws:
ServletException
IOException

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

readRequestBody

protected String readRequestBody(HttpServletRequest request)
                          throws IOException
Throws:
IOException

getTransportChannel

protected BlockingQueueTransport getTransportChannel(HttpServletRequest request,
                                                     HttpServletResponse response)
                                              throws IOException
Throws:
IOException

createTransportChannel

protected BlockingQueueTransport createTransportChannel(HttpServletRequest request,
                                                        HttpServletResponse response)
                                                 throws IOException
Throws:
IOException

createTransportChannel

protected BlockingQueueTransport createTransportChannel()

createWireFormat

protected TextWireFormat createWireFormat()


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.