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.构造器和说明 |
---|
HttpTunnelingServlet() |
限定符和类型 | 方法和说明 |
---|---|
protected ChannelFactory |
createChannelFactory(java.net.SocketAddress remoteAddress) |
void |
destroy() |
protected void |
destroyChannelFactory(ChannelFactory factory) |
void |
init() |
protected java.net.SocketAddress |
parseEndpoint(java.lang.String endpoint) |
protected void |
service(HttpServletRequest req,
HttpServletResponse res) |
public void init() throws ServletException
ServletException
protected java.net.SocketAddress parseEndpoint(java.lang.String endpoint) throws java.lang.Exception
java.lang.Exception
protected ChannelFactory createChannelFactory(java.net.SocketAddress remoteAddress) throws java.lang.Exception
java.lang.Exception
public void destroy()
protected void destroyChannelFactory(ChannelFactory factory) throws java.lang.Exception
java.lang.Exception
protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException
ServletException
java.io.IOException