org.mortbay.proxy
public class AsyncProxyServlet extends java.lang.Object implements Servlet
Modifier and Type | Class and Description |
---|---|
static class |
AsyncProxyServlet.Transparent
Transparent Proxy.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.HashSet<java.lang.String> |
_DontProxyHeaders |
Constructor and Description |
---|
AsyncProxyServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
ServletConfig |
getServletConfig() |
java.lang.String |
getServletInfo() |
void |
handleConnect(HttpServletRequest request,
HttpServletResponse response) |
void |
init(ServletConfig config) |
protected org.mortbay.jetty.HttpURI |
proxyHttpURI(java.lang.String scheme,
java.lang.String serverName,
int serverPort,
java.lang.String uri)
/** Resolve requested URL to the Proxied HttpURI
|
void |
service(ServletRequest req,
ServletResponse res) |
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
ServletException
public ServletConfig getServletConfig()
getServletConfig
in interface Servlet
public void service(ServletRequest req, ServletResponse res) throws ServletException, java.io.IOException
service
in interface Servlet
ServletException
java.io.IOException
protected org.mortbay.jetty.HttpURI proxyHttpURI(java.lang.String scheme, java.lang.String serverName, int serverPort, java.lang.String uri) throws java.net.MalformedURLException
scheme
- The scheme of the received request.serverName
- The server encoded in the received request(which
may be from an absolute URL in the request line).serverPort
- The server port of the received request (which
may be from an absolute URL in the request line).uri
- The URI of the received request.java.net.MalformedURLException
public void handleConnect(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
java.io.IOException
public java.lang.String getServletInfo()
getServletInfo
in interface Servlet
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.