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.HttpServlet
AnHttpServlet
that 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 ChannelFactory
createChannelFactory(SocketAddress remoteAddress)
void
destroy()
protected void
destroyChannelFactory(ChannelFactory factory)
void
init()
protected SocketAddress
parseEndpoint(String endpoint)
protected void
service(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:
init
in 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:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in 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:
service
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
-