Class AbstractProxyServlet.TransparentDelegate

  • Enclosing class:
    AbstractProxyServlet

    protected static class AbstractProxyServlet.TransparentDelegate
    extends java.lang.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".

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void init​(javax.servlet.ServletConfig config)  
      protected java.lang.String rewriteTarget​(javax.servlet.http.HttpServletRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • init

        protected void init​(javax.servlet.ServletConfig config)
                     throws javax.servlet.ServletException
        Throws:
        javax.servlet.ServletException
      • rewriteTarget

        protected java.lang.String rewriteTarget​(javax.servlet.http.HttpServletRequest request)