
public class HttpTunnelingServlet extends HttpServlet
HttpServlet that proxies an incoming data to the actual server
and vice versa. Please refer to the
package summary for
the detailed usage.| Constructor and Description |
|---|
HttpTunnelingServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected ChannelFactory |
createChannelFactory(SocketAddress remoteAddress) |
void |
destroy() |
protected void |
destroyChannelFactory(ChannelFactory factory) |
void |
init() |
protected SocketAddress |
parseEndpoint(String endpoint) |
protected void |
service(HttpServletRequest req,
HttpServletResponse res) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logpublic void init()
throws ServletException
init in class GenericServletServletExceptionprotected SocketAddress parseEndpoint(String endpoint) throws Exception
Exceptionprotected ChannelFactory createChannelFactory(SocketAddress remoteAddress) throws Exception
Exceptionpublic void destroy()
destroy in interface Servletdestroy in class GenericServletprotected void destroyChannelFactory(ChannelFactory factory) throws Exception
Exceptionprotected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
service in class HttpServletServletExceptionIOExceptionCopyright © 2008-2014 The Netty Project. All Rights Reserved.