Servlet, ServletConfigAsyncMiddleManServlet.Transparentpublic 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 | 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 | 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, validateDestinationgetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected void service(HttpServletRequest clientRequest, HttpServletResponse proxyResponse) throws ServletException, java.io.IOException
service in class HttpServletServletExceptionjava.io.IOExceptionprotected DeferredContentProvider newProxyContentProvider(HttpServletRequest clientRequest, HttpServletResponse proxyResponse, Request proxyRequest) throws java.io.IOException
java.io.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–2018 Webtide. All rights reserved.