public class HttpExchangeTracer extends Object
Constructor and Description |
---|
HttpExchangeTracer(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(Map<String,List<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,
Supplier<Principal> principal,
Supplier<String> sessionId)
Ends the tracing of the exchange that is being concluded by sending the given
response . |
public final HttpTrace receivedRequest(TraceableRequest request)
request
being received.request
- the received requestpublic final void sendingResponse(HttpTrace trace, TraceableResponse response, Supplier<Principal> principal, Supplier<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 sessionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.