Class ProxyServlet

    • Constructor Detail

      • ProxyServlet

        public ProxyServlet()
    • Method Detail

      • service

        protected void service​(jakarta.servlet.http.HttpServletRequest request,
                               jakarta.servlet.http.HttpServletResponse response)
                        throws jakarta.servlet.ServletException,
                               java.io.IOException
        Overrides:
        service in class jakarta.servlet.http.HttpServlet
        Throws:
        jakarta.servlet.ServletException
        java.io.IOException
      • proxyRequestContent

        protected org.eclipse.jetty.client.api.Request.Content proxyRequestContent​(jakarta.servlet.http.HttpServletRequest request,
                                                                                   jakarta.servlet.http.HttpServletResponse response,
                                                                                   org.eclipse.jetty.client.api.Request proxyRequest)
                                                                            throws java.io.IOException
        Wraps the client-to-proxy request content in a Request.Content for the proxy-to-server request.
        Parameters:
        request - the client-to-proxy request
        response - the proxy-to-client response
        proxyRequest - the proxy-to-server request
        Returns:
        a proxy-to-server request content
        Throws:
        java.io.IOException - if the proxy-to-server request content cannot be created
      • newProxyResponseListener

        protected org.eclipse.jetty.client.api.Response.Listener newProxyResponseListener​(jakarta.servlet.http.HttpServletRequest request,
                                                                                          jakarta.servlet.http.HttpServletResponse response)
        Specified by:
        newProxyResponseListener in class AbstractProxyServlet
      • onResponseContent

        protected void onResponseContent​(jakarta.servlet.http.HttpServletRequest request,
                                         jakarta.servlet.http.HttpServletResponse response,
                                         org.eclipse.jetty.client.api.Response proxyResponse,
                                         byte[] buffer,
                                         int offset,
                                         int length,
                                         org.eclipse.jetty.util.Callback callback)
      • onContinue

        protected void onContinue​(jakarta.servlet.http.HttpServletRequest clientRequest,
                                  org.eclipse.jetty.client.api.Request proxyRequest)
        Overrides:
        onContinue in class AbstractProxyServlet