org.eclipse.jetty.servlets
Class ProxyServlet.Transparent

java.lang.Object
  extended by org.eclipse.jetty.servlets.ProxyServlet
      extended by org.eclipse.jetty.servlets.ProxyServlet.Transparent
All Implemented Interfaces:
Servlet
Enclosing class:
ProxyServlet

public static class ProxyServlet.Transparent
extends ProxyServlet

Transparent Proxy. This convenience extension to ProxyServlet configures the servlet as a transparent proxy. The servlet is configured with init parameters:

For example, if a request was received at /foo/bar and the ProxyTo was http://host:80/context and the Prefix was /foo, then the request would be proxied to http://host:80/context/bar


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.servlets.ProxyServlet
ProxyServlet.Transparent
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.servlets.ProxyServlet
_black, _client, _config, _context, _DontProxyHeaders, _hostHeader, _log, _white
 
Constructor Summary
ProxyServlet.Transparent()
           
ProxyServlet.Transparent(String prefix, String host, int port)
           
ProxyServlet.Transparent(String prefix, String schema, String host, int port, String path)
           
 
Method Summary
 void init(ServletConfig config)
           
protected  HttpURI proxyHttpURI(String scheme, String serverName, int serverPort, String uri)
           
 
Methods inherited from class org.eclipse.jetty.servlets.ProxyServlet
destroy, getHostHeader, getServletConfig, getServletInfo, handleConnect, service, setHostHeader, validateDestination
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyServlet.Transparent

public ProxyServlet.Transparent()

ProxyServlet.Transparent

public ProxyServlet.Transparent(String prefix,
                                String host,
                                int port)

ProxyServlet.Transparent

public ProxyServlet.Transparent(String prefix,
                                String schema,
                                String host,
                                int port,
                                String path)
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class ProxyServlet
Throws:
ServletException

proxyHttpURI

protected HttpURI proxyHttpURI(String scheme,
                               String serverName,
                               int serverPort,
                               String uri)
                        throws MalformedURLException
Overrides:
proxyHttpURI in class ProxyServlet
Throws:
MalformedURLException


Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.