public class BalancerServlet extends ProxyServlet
ProxyServlet.ProxyInputStreamContentProvider, ProxyServlet.ProxyResponseListener, ProxyServlet.TransparentAbstractProxyServlet.TransparentDelegate_log, HOP_HEADERS| Constructor and Description |
|---|
BalancerServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
filterResponseHeader(HttpServletRequest request,
String headerName,
String headerValue)
Extension point for remote server response header filtering.
|
void |
init() |
protected URI |
rewriteURI(HttpServletRequest request) |
boolean |
validateDestination(String host,
int port)
Checks the given
host and port against whitelist and blacklist. |
copyHeaders, customizeProxyRequest, filterServerResponseHeader, newProxyResponseListener, onClientRequestFailure, onResponseContent, onResponseFailure, onResponseHeaders, onResponseSuccess, onRewriteFailed, proxyRequestContent, serviceaddProxyHeaders, addViaHeader, addXForwardedHeaders, copyRequestHeaders, createHttpClient, createLogger, destroy, findConnectionHeaders, getBlackListHosts, getHostHeader, getHttpClient, getRequestId, getTimeout, getViaHost, getWhiteListHosts, hasContent, newHttpClient, onClientRequestFailure, onProxyResponseFailure, onProxyResponseSuccess, onProxyRewriteFailed, onServerResponseHeaders, rewriteTarget, sendProxyRequest, setTimeoutdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logpublic void init()
throws ServletException
init in class AbstractProxyServletServletExceptionprotected URI rewriteURI(HttpServletRequest request)
rewriteURI in class ProxyServletprotected String filterResponseHeader(HttpServletRequest request, String headerName, String headerValue)
ProxyServletfilterResponseHeader in class ProxyServletrequest - the request to proxyheaderName - the header nameheaderValue - the header valuepublic boolean validateDestination(String host, int port)
AbstractProxyServlethost and port against whitelist and blacklist.validateDestination in class AbstractProxyServlethost - the host to checkport - the port to checkCopyright © 1995-2016 Webtide. All Rights Reserved.