Package step.plugins.analytics.grafana
Class GrafanaProxy
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.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:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
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(jakarta.servlet.http.HttpServletRequest clientRequest, org.eclipse.jetty.client.api.Request proxyRequest)
void
init(jakarta.servlet.ServletConfig config)
protected void
onProxyResponseFailure(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, org.eclipse.jetty.client.api.Response serverResponse, Throwable failure)
void
service(jakarta.servlet.http.HttpServletRequest req, jakarta.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, addViaHeader, addXForwardedHeaders, clientRequestStatus, copyRequestHeaders, createHttpClient, createLogger, destroy, expects100Continue, filterServerResponseHeader, findConnectionHeaders, getBlackListHosts, getHostHeader, getHttpClient, getRequestId, getTimeout, getViaHost, getWhiteListHosts, hasContent, init, newClientConnector, newHttpClient, newHttpClient, newProxyRequest, onClientRequestFailure, onProxyResponseSuccess, onProxyRewriteFailed, onServerResponseHeaders, proxyResponseStatus, sendProxyRequest, sendProxyResponseError, setTimeout, validateDestination
-
Methods inherited from class jakarta.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(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException
- Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classorg.eclipse.jetty.proxy.ProxyServlet.Transparent
- Throws:
jakarta.servlet.ServletException
-
service
public void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException
- Overrides:
service
in classorg.eclipse.jetty.proxy.ProxyServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
addProxyHeaders
protected void addProxyHeaders(jakarta.servlet.http.HttpServletRequest clientRequest, org.eclipse.jetty.client.api.Request proxyRequest)
- Overrides:
addProxyHeaders
in classorg.eclipse.jetty.proxy.AbstractProxyServlet
-
onProxyResponseFailure
protected void onProxyResponseFailure(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, org.eclipse.jetty.client.api.Response serverResponse, Throwable failure)
- Overrides:
onProxyResponseFailure
in classorg.eclipse.jetty.proxy.AbstractProxyServlet
-
-