Package be.personify.util.http
Class Proxy
java.lang.Object
be.personify.util.http.Proxy
Class to proxy requests
- Author:
- vanderw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforwardRequest(String server, String targetHost, String path, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidforwardRequest(String server, String targetHost, String path, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, Map<String, String> headerOverride) Proxies the request
-
Constructor Details
-
Proxy
public Proxy(int bufferSize)
-
-
Method Details
-
forwardRequest
public void forwardRequest(String server, String targetHost, String path, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws Exception - Throws:
Exception
-
forwardRequest
public void forwardRequest(String server, String targetHost, String path, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, Map<String, String> headerOverride) throws ExceptionProxies the request- Parameters:
server- the name of the servertargetHost- the target hostpath- the pathreq- the HttpServletReqeustresp- the HttpServletResponseheaderOverride- override the header or not- Throws:
Exception- containing the stacktrace
-