org.eclipse.jetty.servlets
类 ProxyServlet.Transparent

java.lang.Object
  继承者 org.eclipse.jetty.servlets.ProxyServlet
      继承者 org.eclipse.jetty.servlets.ProxyServlet.Transparent
所有已实现的接口:
Servlet
包容类:
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


嵌套类摘要
 
从类 org.eclipse.jetty.servlets.ProxyServlet 继承的嵌套类/接口
ProxyServlet.Transparent
 
字段摘要
 
从类 org.eclipse.jetty.servlets.ProxyServlet 继承的字段
_black, _client, _config, _context, _DontProxyHeaders, _hostHeader, _log, _white
 
构造方法摘要
ProxyServlet.Transparent()
           
ProxyServlet.Transparent(String prefix, String host, int port)
           
ProxyServlet.Transparent(String prefix, String schema, String host, int port, String path)
           
 
方法摘要
 void init(ServletConfig config)
          Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
protected  HttpURI proxyHttpURI(String scheme, String serverName, int serverPort, String uri)
           
 
从类 org.eclipse.jetty.servlets.ProxyServlet 继承的方法
createHttpClient, createHttpClientInstance, createLogger, customizeContinuation, customizeExchange, destroy, filterResponseHeaderValue, getHostHeader, getServletConfig, getServletInfo, handleConnect, handleOnConnectionFailed, handleOnException, handleOnExpire, proxyHttpURI, service, setHostHeader, validateDestination
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

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)
方法详细信息

init

public void init(ServletConfig config)
          throws ServletException
从接口 Servlet 复制的描述
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.

The servlet container calls the init method exactly once after instantiating the servlet. The init method must complete successfully before the servlet can receive any requests.

The servlet container cannot place the servlet into service if the init method

  1. Throws a ServletException
  2. Does not return within a time period defined by the Web server

指定者:
接口 Servlet 中的 init
覆盖:
ProxyServlet 中的 init
参数:
config - a ServletConfig object containing the servlet's configuration and initialization parameters
抛出:
ServletException - if an exception has occurred that interferes with the servlet's normal operation
另请参见:
UnavailableException, Servlet.getServletConfig()

proxyHttpURI

protected HttpURI proxyHttpURI(String scheme,
                               String serverName,
                               int serverPort,
                               String uri)
                        throws MalformedURLException
覆盖:
ProxyServlet 中的 proxyHttpURI
抛出:
MalformedURLException


Copyright © 2013. All Rights Reserved.