org.jboss.netty.channel.socket.http
Class HttpTunnelingServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.jboss.netty.channel.socket.http.HttpTunnelingServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class HttpTunnelingServlet
- extends javax.servlet.http.HttpServlet
An HttpServlet
that proxies an incoming data to the actual server
and vice versa. Please refer to the
package summary for
the detailed usage.
- Version:
- $Rev: 2119 $, $Date: 2010-02-01 20:46:09 +0900 (Mon, 01 Feb 2010) $
- Author:
- The Netty Project, Andy Taylor (andy.taylor@jboss.org), Trustin Lee
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpTunnelingServlet
public HttpTunnelingServlet()
init
public void init()
throws javax.servlet.ServletException
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
parseEndpoint
protected java.net.SocketAddress parseEndpoint(java.lang.String endpoint)
throws java.lang.Exception
- Throws:
java.lang.Exception
createChannelFactory
protected ChannelFactory createChannelFactory(java.net.SocketAddress remoteAddress)
throws java.lang.Exception
- Throws:
java.lang.Exception
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Servlet
- Overrides:
destroy
in class javax.servlet.GenericServlet
destroyChannelFactory
protected void destroyChannelFactory(ChannelFactory factory)
throws java.lang.Exception
- Throws:
java.lang.Exception
service
protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
service
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
Copyright © 2008-2011. All Rights Reserved.