类 HttpTrace
- java.lang.Object
- org.springframework.boot.actuate.trace.http.HttpTrace
嵌套类概要
嵌套类 修饰符和类型 类 说明 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.
构造器概要
构造器 构造器 说明 HttpTrace(HttpTrace.Request request, HttpTrace.Response response, Instant timestamp, HttpTrace.Principal principal, HttpTrace.Session session, Long timeTaken)
Creates a fully-configuredHttpTrace
instance.
构造器详细资料
HttpTrace
public HttpTrace(HttpTrace.Request request, HttpTrace.Response response, Instant timestamp, HttpTrace.Principal principal, HttpTrace.Session session, Long timeTaken)
Creates a fully-configuredHttpTrace
instance. Primarily for use byHttpTraceRepository
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 known- 从以下版本开始:
- 2.1.0
方法详细资料
getTimestamp
public Instant getTimestamp()
getPrincipal
public HttpTrace.Principal getPrincipal()
getSession
public HttpTrace.Session getSession()
getRequest
public HttpTrace.Request getRequest()
getResponse
public HttpTrace.Response getResponse()
getTimeTaken
public Long getTimeTaken()