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, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public void init() throws ServletException
init
in class GenericServlet
ServletException
protected SocketAddress parseEndpoint(String endpoint) throws Exception
Exception
protected ChannelFactory createChannelFactory(SocketAddress remoteAddress) throws Exception
Exception
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
protected void destroyChannelFactory(ChannelFactory factory) throws Exception
Exception
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
service
in class HttpServlet
ServletException
IOException
Copyright © 2008-2015 The Netty Project. All Rights Reserved.