public final class HttpTrace extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpTrace.Principal
Principal associated with an HTTP request-response exchange.
|
static class |
HttpTrace.Request
Trace of an HTTP request.
|
static class |
HttpTrace.Response
Trace of an HTTP response.
|
static class |
HttpTrace.Session
Session associated with an HTTP request-response exchange.
|
Constructor and Description |
---|
HttpTrace(HttpTrace.Request request,
HttpTrace.Response response,
Instant timestamp,
HttpTrace.Principal principal,
HttpTrace.Session session,
Long timeTaken)
Creates a fully-configured
HttpTrace instance. |
Modifier and Type | Method and Description |
---|---|
HttpTrace.Principal |
getPrincipal() |
HttpTrace.Request |
getRequest() |
HttpTrace.Response |
getResponse() |
HttpTrace.Session |
getSession() |
Instant |
getTimestamp() |
Long |
getTimeTaken() |
public HttpTrace(HttpTrace.Request request, HttpTrace.Response response, Instant timestamp, HttpTrace.Principal principal, HttpTrace.Session session, Long timeTaken)
HttpTrace
instance. Primarily for use by
HttpTraceRepository
implementations when recreating a trace from a
persistent store.request
- the requestresponse
- the responsetimestamp
- the timestamp of the request-response exchangeprincipal
- the principal, if anysession
- the session, if anytimeTaken
- the time taken, in milliseconds, to complete the request-response
exchange, if knownpublic Instant getTimestamp()
public HttpTrace.Principal getPrincipal()
public HttpTrace.Session getSession()
public HttpTrace.Request getRequest()
public HttpTrace.Response getResponse()
public Long getTimeTaken()