public class BalancerServlet extends ProxyServlet
ProxyServlet.Transparent_black, _client, _config, _context, _DontProxyHeaders, _hostHeader, _log, _white| Constructor and Description |
|---|
BalancerServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
filterResponseHeaderValue(String headerName,
String headerValue,
javax.servlet.http.HttpServletRequest request)
Extension point for remote server response header filtering.
|
String |
getHostHeader()
Get the hostHeader.
|
void |
init(javax.servlet.ServletConfig config) |
protected HttpURI |
proxyHttpURI(javax.servlet.http.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.
|
createHttpClient, createHttpClientInstance, createLogger, customizeContinuation, customizeExchange, destroy, getServletConfig, getServletInfo, handleConnect, handleOnConnectionFailed, handleOnException, handleOnExpire, proxyHttpURI, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class ProxyServletjavax.servlet.ServletExceptionprotected HttpURI proxyHttpURI(javax.servlet.http.HttpServletRequest request, String uri) throws MalformedURLException
proxyHttpURI in class ProxyServletMalformedURLExceptionprotected String filterResponseHeaderValue(String headerName, String headerValue, javax.servlet.http.HttpServletRequest request)
ProxyServletfilterResponseHeaderValue in class ProxyServletpublic String getHostHeader()
ProxyServletgetHostHeader in class ProxyServletpublic void setHostHeader(String hostHeader)
ProxyServletsetHostHeader in class ProxyServlethostHeader - the hostHeader to setpublic boolean validateDestination(String host, String path)
ProxyServletvalidateDestination in class ProxyServlethost - hostname to checkpath - path to checkCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.