Package org.jvnet.hudson.test
Class JavaNetReverseProxy2
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.jvnet.hudson.test.JavaNetReverseProxy2
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class JavaNetReverseProxy2
extends jakarta.servlet.http.HttpServlet
Acts as a reverse proxy, so that during a test we can avoid hitting updates.jenkins.io.
The contents are cached locally.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JavaNetReverseProxy2
Gets the default instance.protected void
service
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) void
stop()
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
localPort
public final int localPort
-
-
Constructor Details
-
JavaNetReverseProxy2
- Throws:
Exception
-
-
Method Details
-
stop
- Throws:
Exception
-
service
protected void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
service
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
getInstance
Gets the default instance.- Throws:
Exception
-