public class BalancerServlet extends ProxyServlet
ProxyServlet.Transparent_log, ASYNC_CONTEXT| Constructor and Description |
|---|
BalancerServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
filterResponseHeader(javax.servlet.http.HttpServletRequest request,
String headerName,
String headerValue)
Extension point for remote server response header filtering.
|
void |
init() |
protected URI |
rewriteURI(javax.servlet.http.HttpServletRequest request) |
boolean |
validateDestination(String host,
int port)
Checks the given
host and port against whitelist and blacklist. |
createHttpClient, createLogger, customizeProxyRequest, destroy, getBlackListHosts, getRequestId, getTimeout, getWhiteListHosts, newHttpClient, onResponseContent, onResponseFailure, onResponseHeaders, onResponseSuccess, service, setTimeout, viaHostdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void init()
throws javax.servlet.ServletException
init in class ProxyServletjavax.servlet.ServletExceptionprotected URI rewriteURI(javax.servlet.http.HttpServletRequest request)
rewriteURI in class ProxyServletprotected String filterResponseHeader(javax.servlet.http.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-2013 Mort Bay Consulting. All Rights Reserved.