public class ProxyServlet extends AbstractProxyServlet
Servlet 3.0 asynchronous proxy servlet.
The request processing is asynchronous, but the I/O is blocking.
| Modifier and Type | Class and Description |
|---|---|
protected class |
ProxyServlet.ProxyInputStreamContentProvider |
protected class |
ProxyServlet.ProxyResponseListener |
static class |
ProxyServlet.Transparent
Convenience extension of
ProxyServlet that offers transparent proxy functionalities. |
AbstractProxyServlet.TransparentDelegate_log, HOP_HEADERS| Constructor and Description |
|---|
ProxyServlet() |
addProxyHeaders, addViaHeader, addXForwardedHeaders, copyRequestHeaders, createHttpClient, createLogger, destroy, findConnectionHeaders, getBlackListHosts, getHostHeader, getHttpClient, getRequestId, getTimeout, getViaHost, getWhiteListHosts, hasContent, init, newHttpClient, onClientRequestFailure, onProxyResponseFailure, onProxyResponseSuccess, onProxyRewriteFailed, onServerResponseHeaders, rewriteTarget, sendProxyRequest, setTimeout, validateDestinationdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logprotected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
service in class HttpServletServletExceptionIOException@Deprecated protected void copyHeaders(HttpServletRequest clientRequest, Request proxyRequest)
AbstractProxyServlet.copyRequestHeaders(HttpServletRequest, Request) insteadprotected ContentProvider proxyRequestContent(Request proxyRequest, HttpServletRequest request) throws IOException
IOExceptionprotected Response.Listener newProxyResponseListener(HttpServletRequest request, HttpServletResponse response)
newProxyResponseListener in class AbstractProxyServletprotected void onClientRequestFailure(Request proxyRequest, HttpServletRequest request, Throwable failure)
@Deprecated protected void onRewriteFailed(HttpServletRequest request, HttpServletResponse response) throws IOException
IOException@Deprecated protected void onResponseHeaders(HttpServletRequest request, HttpServletResponse response, Response proxyResponse)
protected String filterServerResponseHeader(HttpServletRequest clientRequest, Response serverResponse, String headerName, String headerValue)
filterServerResponseHeader in class AbstractProxyServletprotected void onResponseContent(HttpServletRequest request, HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback)
@Deprecated protected void onResponseSuccess(HttpServletRequest request, HttpServletResponse response, Response proxyResponse)
@Deprecated protected void onResponseFailure(HttpServletRequest request, HttpServletResponse response, Response proxyResponse, Throwable failure)
@Deprecated protected URI rewriteURI(HttpServletRequest request)
AbstractProxyServlet.rewriteTarget(HttpServletRequest)@Deprecated protected void customizeProxyRequest(Request proxyRequest, HttpServletRequest request)
@Deprecated protected String filterResponseHeader(HttpServletRequest request, String headerName, String headerValue)
filterServerResponseHeader(HttpServletRequest, Response, String, String) insteadheaderName - the header nameheaderValue - the header valuerequest - the request to proxyCopyright © 1995-2016 Webtide. All Rights Reserved.