Class Proxy

java.lang.Object
be.personify.util.http.Proxy

public class Proxy extends Object
Class to proxy requests
Author:
vanderw
  • 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 Exception
      Proxies the request
      Parameters:
      server - the name of the server
      targetHost - the target host
      path - the path
      req - the HttpServletReqeust
      resp - the HttpServletResponse
      headerOverride - override the header or not
      Throws:
      Exception - containing the stacktrace