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:
- ProxyTo - a URI like http://host:80/context to which the request is proxied.
- Prefix - a URI prefix that is striped from the start of the forwarded URI.
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 继承的方法 |
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
- Throws a
ServletException
- 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.