|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.servlets.ProxyServlet
org.eclipse.jetty.servlets.BalancerServlet
public class BalancerServlet
6
| 嵌套类摘要 |
|---|
| 从类 org.eclipse.jetty.servlets.ProxyServlet 继承的嵌套类/接口 |
|---|
ProxyServlet.Transparent |
| 字段摘要 |
|---|
| 从类 org.eclipse.jetty.servlets.ProxyServlet 继承的字段 |
|---|
_black, _client, _config, _context, _DontProxyHeaders, _hostHeader, _log, _white |
| 构造方法摘要 | |
|---|---|
BalancerServlet()
|
|
| 方法摘要 | |
|---|---|
protected String |
filterResponseHeaderValue(String headerName,
String headerValue,
HttpServletRequest request)
Extension point for remote server response header filtering. |
String |
getHostHeader()
Get the hostHeader. |
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(HttpServletRequest request,
String uri)
|
void |
setHostHeader(String hostHeader)
Set the hostHeader. |
boolean |
validateDestination(String host,
String path)
Check the request hostname and path against white- and blacklist. |
| 从类 org.eclipse.jetty.servlets.ProxyServlet 继承的方法 |
|---|
createHttpClient, createHttpClientInstance, createLogger, customizeContinuation, customizeExchange, destroy, getServletConfig, getServletInfo, handleConnect, handleOnConnectionFailed, handleOnException, handleOnExpire, proxyHttpURI, service |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public BalancerServlet()
| 方法详细信息 |
|---|
public void init(ServletConfig config)
throws ServletException
Servlet 复制的描述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
ServletException
Servlet 中的 initProxyServlet 中的 initconfig - a ServletConfig object
containing the servlet's
configuration and initialization parameters
ServletException - if an exception has occurred that
interferes with the servlet's normal
operationUnavailableException,
Servlet.getServletConfig()
protected HttpURI proxyHttpURI(HttpServletRequest request,
String uri)
throws MalformedURLException
ProxyServlet 中的 proxyHttpURIMalformedURLException
protected String filterResponseHeaderValue(String headerName,
String headerValue,
HttpServletRequest request)
ProxyServlet 复制的描述
ProxyServlet 中的 filterResponseHeaderValuepublic String getHostHeader()
ProxyServlet 复制的描述
ProxyServlet 中的 getHostHeaderpublic void setHostHeader(String hostHeader)
ProxyServlet 复制的描述
ProxyServlet 中的 setHostHeaderhostHeader - the hostHeader to set
public boolean validateDestination(String host,
String path)
ProxyServlet 复制的描述
ProxyServlet 中的 validateDestinationhost - hostname to checkpath - path to check
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||