Class Proxy


  • public class Proxy
    extends Object
    Class to proxy requests
    Author:
    vanderw
    • Constructor Detail

      • Proxy

        public Proxy​(int bufferSize)
    • Method Detail

      • forwardRequest

        public void forwardRequest​(String server,
                                   String targetHost,
                                   String path,
                                   javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse resp)
                            throws Exception
        Throws:
        Exception
      • forwardRequest

        public void forwardRequest​(String server,
                                   String targetHost,
                                   String path,
                                   javax.servlet.http.HttpServletRequest req,
                                   javax.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