Class HttpTunnelServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- 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
Constructors Constructor Description HttpTunnelServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BlockingQueueTransportcreateTransportChannel()protected BlockingQueueTransportcreateTransportChannel(HttpServletRequest request, HttpServletResponse response)protected TextWireFormatcreateWireFormat()protected voiddoGet(HttpServletRequest request, HttpServletResponse response)protected voiddoHead(HttpServletRequest request, HttpServletResponse response)protected voiddoOptions(HttpServletRequest request, HttpServletResponse response)protected voiddoPost(HttpServletRequest request, HttpServletResponse response)protected BlockingQueueTransportgetTransportChannel(HttpServletRequest request, HttpServletResponse response)voidinit()-
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
-
-
-
-
Method Detail
-
init
public void init() throws ServletException- Overrides:
initin classGenericServlet- Throws:
ServletException
-
doOptions
protected void doOptions(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doOptionsin classHttpServlet- Throws:
ServletExceptionIOException
-
doHead
protected void doHead(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doHeadin classHttpServlet- Throws:
ServletExceptionIOException
-
doGet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doGetin classHttpServlet- Throws:
ServletExceptionIOException
-
doPost
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doPostin classHttpServlet- Throws:
ServletExceptionIOException
-
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()
-
-