public final class APIProxyServlet
extends org.eclipse.jetty.proxy.AsyncMiddleManServlet
org.eclipse.jetty.proxy.AsyncMiddleManServlet.ContentTransformer, org.eclipse.jetty.proxy.AsyncMiddleManServlet.GZIPContentTransformer, org.eclipse.jetty.proxy.AsyncMiddleManServlet.ProxyReader, org.eclipse.jetty.proxy.AsyncMiddleManServlet.ProxyResponseListener, org.eclipse.jetty.proxy.AsyncMiddleManServlet.ProxyWriter, org.eclipse.jetty.proxy.AsyncMiddleManServlet.Transparent
Constructor and Description |
---|
APIProxyServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
addProxyHeaders(javax.servlet.http.HttpServletRequest clientRequest,
org.eclipse.jetty.client.api.Request proxyRequest) |
void |
init(javax.servlet.ServletConfig config) |
protected org.eclipse.jetty.proxy.AsyncMiddleManServlet.ContentTransformer |
newClientRequestContentTransformer(javax.servlet.http.HttpServletRequest clientRequest,
org.eclipse.jetty.client.api.Request proxyRequest) |
protected org.eclipse.jetty.client.HttpClient |
newHttpClient() |
protected org.eclipse.jetty.client.api.Response.Listener |
newProxyResponseListener(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
onClientRequestFailure(javax.servlet.http.HttpServletRequest clientRequest,
org.eclipse.jetty.client.api.Request proxyRequest,
javax.servlet.http.HttpServletResponse proxyResponse,
java.lang.Throwable failure) |
protected java.lang.String |
rewriteTarget(javax.servlet.http.HttpServletRequest clientRequest) |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
newProxyContentProvider, newProxyReadListener, newProxyWriteListener, newServerResponseContentTransformer, onContinue
addViaHeader, addXForwardedHeaders, copyRequestHeaders, createHttpClient, createLogger, destroy, expects100Continue, filterServerResponseHeader, findConnectionHeaders, getBlackListHosts, getHostHeader, getHttpClient, getRequestId, getTimeout, getViaHost, getWhiteListHosts, hasContent, init, onProxyResponseFailure, onProxyResponseSuccess, onProxyRewriteFailed, onServerResponseHeaders, sendProxyRequest, sendProxyResponseError, setTimeout, validateDestination
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
service
in class org.eclipse.jetty.proxy.AsyncMiddleManServlet
javax.servlet.ServletException
java.io.IOException
protected void addProxyHeaders(javax.servlet.http.HttpServletRequest clientRequest, org.eclipse.jetty.client.api.Request proxyRequest)
addProxyHeaders
in class org.eclipse.jetty.proxy.AbstractProxyServlet
protected org.eclipse.jetty.client.HttpClient newHttpClient()
newHttpClient
in class org.eclipse.jetty.proxy.AbstractProxyServlet
protected java.lang.String rewriteTarget(javax.servlet.http.HttpServletRequest clientRequest)
rewriteTarget
in class org.eclipse.jetty.proxy.AbstractProxyServlet
protected void onClientRequestFailure(javax.servlet.http.HttpServletRequest clientRequest, org.eclipse.jetty.client.api.Request proxyRequest, javax.servlet.http.HttpServletResponse proxyResponse, java.lang.Throwable failure)
onClientRequestFailure
in class org.eclipse.jetty.proxy.AbstractProxyServlet
protected org.eclipse.jetty.client.api.Response.Listener newProxyResponseListener(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
newProxyResponseListener
in class org.eclipse.jetty.proxy.AsyncMiddleManServlet
protected org.eclipse.jetty.proxy.AsyncMiddleManServlet.ContentTransformer newClientRequestContentTransformer(javax.servlet.http.HttpServletRequest clientRequest, org.eclipse.jetty.client.api.Request proxyRequest)
newClientRequestContentTransformer
in class org.eclipse.jetty.proxy.AsyncMiddleManServlet