Class HttpTunnelingServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.jboss.netty.channel.socket.http.HttpTunnelingServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class HttpTunnelingServlet extends javax.servlet.http.HttpServletAnHttpServletthat proxies an incoming data to the actual server and vice versa. Please refer to the package summary for the detailed usage.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpTunnelingServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ChannelFactorycreateChannelFactory(SocketAddress remoteAddress)voiddestroy()protected voiddestroyChannelFactory(ChannelFactory factory)voidinit()protected SocketAddressparseEndpoint(String endpoint)protected voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
parseEndpoint
protected SocketAddress parseEndpoint(String endpoint) throws Exception
- Throws:
Exception
-
createChannelFactory
protected ChannelFactory createChannelFactory(SocketAddress remoteAddress) throws Exception
- Throws:
Exception
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Servlet- Overrides:
destroyin classjavax.servlet.GenericServlet
-
destroyChannelFactory
protected void destroyChannelFactory(ChannelFactory factory) throws Exception
- Throws:
Exception
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException- Overrides:
servicein classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
-