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 parameter:

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
_config, _context, _DontProxyHeaders, _log, _name
 
Constructor Summary
ProxyServlet.Transparent()
           
ProxyServlet.Transparent(String prefix, String server, int port)
           
 
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, getServletConfig, getServletInfo, handleConnect, service
 
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 server,
                                int port)
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-2009 Mort Bay Consulting. All Rights Reserved.