Class JavaNetReverseProxy

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class JavaNetReverseProxy
    extends javax.servlet.http.HttpServlet
    Acts as a reverse proxy, so that during a test we can avoid hitting updates.jenkins-ci.org.

    The contents are cached locally.

    Author:
    Kohsuke Kawaguchi
    See Also:
    Serialized Form
    • Field Detail

      • localPort

        public final int localPort
    • Constructor Detail

    • Method Detail

      • service

        protected void service​(javax.servlet.http.HttpServletRequest req,
                               javax.servlet.http.HttpServletResponse resp)
                        throws javax.servlet.ServletException,
                               IOException
        Overrides:
        service in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException