Class AsyncMiddleManServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.eclipse.jetty.ee10.proxy.AbstractProxyServlet
org.eclipse.jetty.ee10.proxy.AsyncMiddleManServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
Direct Known Subclasses:
AsyncMiddleManServlet.Transparent

public class AsyncMiddleManServlet extends AbstractProxyServlet

Servlet 3.1 asynchronous proxy servlet with capability to intercept and modify request/response content.

Both the request processing and the I/O are asynchronous.

See Also:
  • Constructor Details Link icon

    • AsyncMiddleManServlet Link icon

      public AsyncMiddleManServlet()
  • Method Details Link icon

    • service Link icon

      protected void service(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse) throws jakarta.servlet.ServletException, IOException
      Overrides:
      service in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • newProxyRequestContent Link icon

      protected AsyncRequestContent newProxyRequestContent(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest)
    • newProxyReadListener Link icon

      protected jakarta.servlet.ReadListener newProxyReadListener(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest, AsyncRequestContent content)
    • newProxyWriteListener Link icon

      protected AsyncMiddleManServlet.ProxyWriter newProxyWriteListener(jakarta.servlet.http.HttpServletRequest clientRequest, Response proxyResponse)
    • newProxyResponseListener Link icon

      protected Response.CompleteListener newProxyResponseListener(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse)
      Specified by:
      newProxyResponseListener in class AbstractProxyServlet
    • newClientRequestContentTransformer Link icon

      protected AsyncMiddleManServlet.ContentTransformer newClientRequestContentTransformer(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest)
    • newServerResponseContentTransformer Link icon

      protected AsyncMiddleManServlet.ContentTransformer newServerResponseContentTransformer(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Response serverResponse)
    • onContinue Link icon

      protected Runnable onContinue(jakarta.servlet.http.HttpServletRequest clientRequest, Request proxyRequest)
      Overrides:
      onContinue in class AbstractProxyServlet
    • writeProxyResponseContent Link icon

      protected void writeProxyResponseContent(jakarta.servlet.ServletOutputStream output, ByteBuffer content) throws IOException
      Throws:
      IOException