Class AsyncMiddleManServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.jetty.proxy.AbstractProxyServlet
org.eclipse.jetty.proxy.AsyncMiddleManServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
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

    • AsyncMiddleManServlet

      public AsyncMiddleManServlet()
  • Method Details

    • service

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

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

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

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

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

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

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

      protected void onContinue(javax.servlet.http.HttpServletRequest clientRequest, Request proxyRequest)
      Overrides:
      onContinue in class AbstractProxyServlet