protected static class AbstractProxyServlet.TransparentDelegate extends Object
Utility class that implement transparent proxy functionalities.
Configuration parameters:
proxyTo
- a mandatory URI like http://host:80/context to which the request is proxied.prefix
- an optional URI prefix that is stripped from the start of the forwarded URI.For example, if a request is received at "/foo/bar", the proxyTo
parameter is
"http://host:80/context" and the prefix
parameter is "/foo", then the request would
be proxied to "http://host:80/context/bar".
Modifier | Constructor and Description |
---|---|
protected |
TransparentDelegate(ProxyServlet proxyServlet) |
Modifier and Type | Method and Description |
---|---|
protected void |
init(ServletConfig config) |
protected String |
rewriteTarget(HttpServletRequest request) |
protected TransparentDelegate(ProxyServlet proxyServlet)
protected void init(ServletConfig config) throws ServletException
ServletException
protected String rewriteTarget(HttpServletRequest request)
Copyright © 1995-2016 Webtide. All Rights Reserved.