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.
ProxyServlet,
AsyncProxyServlet,
ConnectHandler,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static interface |
AsyncMiddleManServlet.ContentTransformer
Allows applications to transform upstream and downstream content.
|
static class |
AsyncMiddleManServlet.GZIPContentTransformer |
protected class |
AsyncMiddleManServlet.ProxyReader |
protected class |
AsyncMiddleManServlet.ProxyResponseListener |
protected class |
AsyncMiddleManServlet.ProxyWriter |
static class |
AsyncMiddleManServlet.Transparent
Convenience extension of
AsyncMiddleManServlet that offers transparent proxy functionalities. |
AbstractProxyServlet.TransparentDelegate_log, CLIENT_REQUEST_ATTRIBUTE, HOP_HEADERS| Constructor and Description |
|---|
AsyncMiddleManServlet() |
addProxyHeaders, addViaHeader, addXForwardedHeaders, copyRequestHeaders, createHttpClient, createLogger, destroy, expects100Continue, filterServerResponseHeader, findConnectionHeaders, getBlackListHosts, getHostHeader, getHttpClient, getRequestId, getTimeout, getViaHost, getWhiteListHosts, hasContent, init, newHttpClient, onClientRequestFailure, onProxyResponseFailure, onProxyResponseSuccess, onProxyRewriteFailed, onServerResponseHeaders, rewriteTarget, sendProxyRequest, sendProxyResponseError, setTimeout, validateDestinationdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logprotected void service(HttpServletRequest clientRequest, HttpServletResponse proxyResponse) throws ServletException, IOException
service in class HttpServletServletExceptionIOExceptionprotected DeferredContentProvider newProxyContentProvider(HttpServletRequest clientRequest, HttpServletResponse proxyResponse, Request proxyRequest) throws IOException
IOExceptionprotected ReadListener newProxyReadListener(HttpServletRequest clientRequest, HttpServletResponse proxyResponse, Request proxyRequest, DeferredContentProvider provider)
protected AsyncMiddleManServlet.ProxyWriter newProxyWriteListener(HttpServletRequest clientRequest, Response proxyResponse)
protected Response.CompleteListener newProxyResponseListener(HttpServletRequest clientRequest, HttpServletResponse proxyResponse)
newProxyResponseListener in class AbstractProxyServletprotected AsyncMiddleManServlet.ContentTransformer newClientRequestContentTransformer(HttpServletRequest clientRequest, Request proxyRequest)
protected AsyncMiddleManServlet.ContentTransformer newServerResponseContentTransformer(HttpServletRequest clientRequest, HttpServletResponse proxyResponse, Response serverResponse)
protected void onContinue(HttpServletRequest clientRequest, Request proxyRequest)
onContinue in class AbstractProxyServletCopyright © 1995–2017 Webtide. All rights reserved.