Servlet, ServletConfigAsyncProxyServlet, BalancerServlet, ProxyServlet.Transparentpublic 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 | 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, CLIENT_REQUEST_ATTRIBUTE, HOP_HEADERS| Constructor | Description |
|---|---|
ProxyServlet() |
| Modifier and Type | Method | Description |
|---|---|---|
protected Response.Listener |
newProxyResponseListener(HttpServletRequest request,
HttpServletResponse response) |
|
protected void |
onContinue(HttpServletRequest clientRequest,
Request proxyRequest) |
|
protected void |
onResponseContent(HttpServletRequest request,
HttpServletResponse response,
Response proxyResponse,
byte[] buffer,
int offset,
int length,
org.eclipse.jetty.util.Callback callback) |
|
protected ContentProvider |
proxyRequestContent(HttpServletRequest request,
HttpServletResponse response,
Request proxyRequest) |
|
protected void |
service(HttpServletRequest request,
HttpServletResponse response) |
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 request, HttpServletResponse response) throws ServletException, java.io.IOException
service in class HttpServletServletExceptionjava.io.IOExceptionprotected ContentProvider proxyRequestContent(HttpServletRequest request, HttpServletResponse response, Request proxyRequest) throws java.io.IOException
java.io.IOExceptionprotected Response.Listener newProxyResponseListener(HttpServletRequest request, HttpServletResponse response)
newProxyResponseListener in class AbstractProxyServletprotected void onResponseContent(HttpServletRequest request, HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, org.eclipse.jetty.util.Callback callback)
protected void onContinue(HttpServletRequest clientRequest, Request proxyRequest)
onContinue in class AbstractProxyServletCopyright © 1995–2018 Webtide. All rights reserved.