public class AsyncProxyServlet extends Object implements Servlet
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncProxyServlet.Transparent
Transparent Proxy.
|
| Modifier and Type | Field and Description |
|---|---|
protected HashSet<String> |
_DontProxyHeaders |
| Constructor and Description |
|---|
AsyncProxyServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
ServletConfig |
getServletConfig() |
String |
getServletInfo() |
void |
handleConnect(HttpServletRequest request,
HttpServletResponse response) |
void |
init(ServletConfig config) |
protected org.mortbay.jetty.HttpURI |
proxyHttpURI(String scheme,
String serverName,
int serverPort,
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 ServletServletExceptionpublic ServletConfig getServletConfig()
getServletConfig in interface Servletpublic void service(ServletRequest req, ServletResponse res) throws ServletException, IOException
service in interface ServletServletExceptionIOExceptionprotected org.mortbay.jetty.HttpURI proxyHttpURI(String scheme, String serverName, int serverPort, String uri) throws 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.MalformedURLExceptionpublic void handleConnect(HttpServletRequest request, HttpServletResponse response) throws IOException
IOExceptionpublic String getServletInfo()
getServletInfo in interface ServletCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.