public final class HttpServerHandler
extends java.lang.Object
| Constructor and Description |
|---|
HttpServerHandler(HttpExtractor extractor,
WebModulesContainer webModulesContainer,
java.util.List<com.microsoft.applicationinsights.internal.util.ThreadLocalCleaner> cleaners,
com.microsoft.applicationinsights.TelemetryClient telemetryClient)
Creates a new instance of
HttpServerHandler |
| Modifier and Type | Method and Description |
|---|---|
void |
handleEnd(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
RequestTelemetryContext context)
This method is used to indicate request end instrumentation, complete correlation and record timing, response.
|
void |
handleException(java.lang.Exception e)
This method is used to capture runtime exceptions while processing request
|
RequestTelemetryContext |
handleStart(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
This method is used to instrument incoming request and initiate correlation with help of
WebRequestTrackingTelemetryModule.onBeginRequest(ServletRequest, ServletResponse) |
public HttpServerHandler(HttpExtractor extractor, WebModulesContainer webModulesContainer, java.util.List<com.microsoft.applicationinsights.internal.util.ThreadLocalCleaner> cleaners, com.microsoft.applicationinsights.TelemetryClient telemetryClient)
HttpServerHandlerextractor - The HttpExtractor used to extract information from request and repsonsewebModulesContainer - The WebModulesContainer used to hold
WebTelemetryModuletelemetryClient - The TelemetryClient used to send telemetrypublic RequestTelemetryContext handleStart(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws java.net.MalformedURLException
WebRequestTrackingTelemetryModule.onBeginRequest(ServletRequest, ServletResponse)request - incoming Requestresponse - Response objectRequestTelemetryContext that contains correlation information and metadata about requestjava.net.MalformedURLExceptionpublic void handleEnd(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
RequestTelemetryContext context)
request - HttpRequest objectresponse - HttpResponse objectcontext - RequestTelemetryContext objectpublic void handleException(java.lang.Exception e)
e - Exception occurred