public class AsyncQueryForwardingServlet
extends org.eclipse.jetty.proxy.AsyncProxyServlet
Constructor and Description |
---|
AsyncQueryForwardingServlet(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.fasterxml.jackson.databind.ObjectMapper smileMapper,
QueryHostFinder hostFinder,
com.google.inject.Provider<org.eclipse.jetty.client.HttpClient> httpClientProvider,
DruidHttpClientConfig httpClientConfig,
com.metamx.emitter.service.ServiceEmitter emitter,
RequestLogger requestLogger) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jetty.client.HttpClient |
createHttpClient() |
protected void |
customizeProxyRequest(org.eclipse.jetty.client.api.Request proxyRequest,
javax.servlet.http.HttpServletRequest request) |
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 URI |
rewriteURI(javax.servlet.http.HttpServletRequest request) |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
newReadListener, newWriteListener, onResponseContent, proxyRequestContent
addViaHeader, addXForwardedHeaders, createLogger, destroy, filterResponseHeader, getBlackListHosts, getHttpClient, getRequestId, getTimeout, getViaHost, getWhiteListHosts, init, onClientRequestFailure, onResponseFailure, onResponseHeaders, onResponseSuccess, onRewriteFailed, setTimeout, validateDestination, viaHost
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public AsyncQueryForwardingServlet(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, com.fasterxml.jackson.databind.ObjectMapper smileMapper, QueryHostFinder hostFinder, com.google.inject.Provider<org.eclipse.jetty.client.HttpClient> httpClientProvider, DruidHttpClientConfig httpClientConfig, com.metamx.emitter.service.ServiceEmitter emitter, RequestLogger requestLogger)
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class org.eclipse.jetty.proxy.ProxyServlet
javax.servlet.ServletException
IOException
protected void customizeProxyRequest(org.eclipse.jetty.client.api.Request proxyRequest, javax.servlet.http.HttpServletRequest request)
customizeProxyRequest
in class org.eclipse.jetty.proxy.ProxyServlet
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.ProxyServlet
protected URI rewriteURI(javax.servlet.http.HttpServletRequest request)
rewriteURI
in class org.eclipse.jetty.proxy.ProxyServlet
protected org.eclipse.jetty.client.HttpClient newHttpClient()
newHttpClient
in class org.eclipse.jetty.proxy.ProxyServlet
protected org.eclipse.jetty.client.HttpClient createHttpClient() throws javax.servlet.ServletException
createHttpClient
in class org.eclipse.jetty.proxy.ProxyServlet
javax.servlet.ServletException
Copyright © 2011–2015. All rights reserved.