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:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
HttpEmbeddedTunnelServlet

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

HttpTunnelServlet

public HttpTunnelServlet()
Method Detail

init

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

doHead

protected void doHead(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doHead in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

readRequestBody

protected java.lang.String readRequestBody(javax.servlet.http.HttpServletRequest request)
                                    throws java.io.IOException
Throws:
java.io.IOException

getTransportChannel

protected BlockingQueueTransport getTransportChannel(javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
                                              throws java.io.IOException
Throws:
java.io.IOException

createTransportChannel

protected BlockingQueueTransport createTransportChannel(javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response)
                                                 throws java.io.IOException
Throws:
java.io.IOException

createTransportChannel

protected BlockingQueueTransport createTransportChannel()

createWireFormat

protected TextWireFormat createWireFormat()


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.