public class HttpExchangeTracer
extends java.lang.Object
| Constructor and Description |
|---|
HttpExchangeTracer(java.util.Set<Include> includes)
Creates a new
HttpExchangeTracer that will use the given includes
to determine the contents of its traces. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
postProcessRequestHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
Post-process the given mutable map of request
headers. |
HttpTrace |
receivedRequest(TraceableRequest request)
Begins the tracing of the exchange that was initiated by the given
request
being received. |
void |
sendingResponse(HttpTrace trace,
TraceableResponse response,
java.util.function.Supplier<java.security.Principal> principal,
java.util.function.Supplier<java.lang.String> sessionId)
Ends the tracing of the exchange that is being concluded by sending the given
response. |
public HttpExchangeTracer(java.util.Set<Include> includes)
HttpExchangeTracer that will use the given includes
to determine the contents of its traces.includes - the includespublic final HttpTrace receivedRequest(TraceableRequest request)
request
being received.request - the received requestpublic final void sendingResponse(HttpTrace trace, TraceableResponse response, java.util.function.Supplier<java.security.Principal> principal, java.util.function.Supplier<java.lang.String> sessionId)
response.trace - the trace for the exchangeresponse - the response that concludes the exchangeprincipal - a supplier for the exchange's principalsessionId - a supplier for the id of the exchange's sessionprotected void postProcessRequestHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
headers.headers - the headers to post-process