Package org.eclipse.jetty.ee10.proxy
Class AbstractProxyServlet.TransparentDelegate
java.lang.Object
org.eclipse.jetty.ee10.proxy.AbstractProxyServlet.TransparentDelegate
- Enclosing class:
- AbstractProxyServlet
Utility class that implement transparent proxy functionalities.
Configuration parameters:
proxyTo
- a mandatory URI likehttp://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
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
init
(jakarta.servlet.ServletConfig config) protected String
rewriteTarget
(jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
TransparentDelegate
-
-
Method Details
-
init
protected void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Throws:
jakarta.servlet.ServletException
-
rewriteTarget
-