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 java.lang.String |
filterResponseHeaderValue(java.lang.String headerName,
java.lang.String headerValue,
javax.servlet.http.HttpServletRequest request)
Extension point for remote server response header filtering.
|
java.lang.String |
getHostHeader()
Get the hostHeader.
|
void |
init(javax.servlet.ServletConfig config) |
protected HttpURI |
proxyHttpURI(javax.servlet.http.HttpServletRequest request,
java.lang.String uri) |
void |
setHostHeader(java.lang.String hostHeader)
Set the hostHeader.
|
boolean |
validateDestination(java.lang.String host,
java.lang.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, java.lang.String uri) throws java.net.MalformedURLException
proxyHttpURI in class ProxyServletjava.net.MalformedURLExceptionprotected java.lang.String filterResponseHeaderValue(java.lang.String headerName,
java.lang.String headerValue,
javax.servlet.http.HttpServletRequest request)
ProxyServletfilterResponseHeaderValue in class ProxyServletpublic java.lang.String getHostHeader()
ProxyServletgetHostHeader in class ProxyServletpublic void setHostHeader(java.lang.String hostHeader)
ProxyServletsetHostHeader in class ProxyServlethostHeader - the hostHeader to setpublic boolean validateDestination(java.lang.String host,
java.lang.String path)
ProxyServletvalidateDestination in class ProxyServlethost - hostname to checkpath - path to checkCopyright © 2013 FuseSource, Corp.. All Rights Reserved.