public class BalancerServlet extends ProxyServlet
ProxyServlet.ProxyInputStreamContentProvider, ProxyServlet.ProxyResponseListener, ProxyServlet.Transparent, ProxyServlet.TransparentDelegate_log| 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. |
addViaHeader, addXForwardedHeaders, createHttpClient, createLogger, customizeProxyRequest, destroy, getBlackListHosts, getHttpClient, getRequestId, getTimeout, getViaHost, getWhiteListHosts, newHttpClient, newProxyResponseListener, onClientRequestFailure, onResponseContent, onResponseFailure, onResponseHeaders, onResponseSuccess, onRewriteFailed, proxyRequestContent, service, setTimeout, viaHostdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logpublic void init()
throws ServletException
init in class ProxyServletServletExceptionprotected 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)
ProxyServlethost and port against whitelist and blacklist.validateDestination in class ProxyServlethost - the host to checkport - the port to checkCopyright © 1995-2015 Webtide. All Rights Reserved.