Package step.plugins.analytics.grafana
Class GrafanaProxy
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.eclipse.jetty.proxy.AbstractProxyServlet
-
- org.eclipse.jetty.proxy.ProxyServlet
-
- org.eclipse.jetty.proxy.ProxyServlet.Transparent
-
- step.plugins.analytics.grafana.GrafanaProxy
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class GrafanaProxy extends org.eclipse.jetty.proxy.ProxyServlet.Transparent
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GrafanaProxy(GrafanaConfiguration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addProxyHeaders(javax.servlet.http.HttpServletRequest clientRequest, org.eclipse.jetty.client.api.Request proxyRequest)
void
init(javax.servlet.ServletConfig config)
protected void
onProxyResponseFailure(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, org.eclipse.jetty.client.api.Response serverResponse, java.lang.Throwable failure)
void
service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
-
Methods inherited from class org.eclipse.jetty.proxy.ProxyServlet
newProxyResponseListener, onContinue, onResponseContent, proxyRequestContent
-
Methods inherited from class org.eclipse.jetty.proxy.AbstractProxyServlet
addViaHeader, addXForwardedHeaders, clientRequestStatus, copyRequestHeaders, createHttpClient, createLogger, destroy, expects100Continue, filterServerResponseHeader, findConnectionHeaders, getBlackListHosts, getHostHeader, getHttpClient, getRequestId, getTimeout, getViaHost, getWhiteListHosts, hasContent, init, newHttpClient, onClientRequestFailure, onProxyResponseSuccess, onProxyRewriteFailed, onServerResponseHeaders, proxyResponseStatus, sendProxyRequest, sendProxyResponseError, setTimeout, validateDestination
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Constructor Detail
-
GrafanaProxy
public GrafanaProxy(GrafanaConfiguration conf)
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classorg.eclipse.jetty.proxy.ProxyServlet.Transparent
- Throws:
javax.servlet.ServletException
-
service
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
- Overrides:
service
in classorg.eclipse.jetty.proxy.ProxyServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
-
addProxyHeaders
protected void addProxyHeaders(javax.servlet.http.HttpServletRequest clientRequest, org.eclipse.jetty.client.api.Request proxyRequest)
- Overrides:
addProxyHeaders
in classorg.eclipse.jetty.proxy.AbstractProxyServlet
-
onProxyResponseFailure
protected void onProxyResponseFailure(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, org.eclipse.jetty.client.api.Response serverResponse, java.lang.Throwable failure)
- Overrides:
onProxyResponseFailure
in classorg.eclipse.jetty.proxy.AbstractProxyServlet
-
-