Class HttpExchange.Started

java.lang.Object
org.springframework.boot.actuate.web.exchanges.HttpExchange.Started
Enclosing class:
HttpExchange

public static final class HttpExchange.Started extends Object
A started request that when finished will return a new HttpExchange instance.
Since:
3.0.0
Author:
Dave Syer, Andy Wilkinson, Phillip Webb
  • Method Details

    • finish

      public HttpExchange finish(RecordableHttpResponse response, Supplier<@Nullable Principal> principalSupplier, Supplier<@Nullable String> sessionIdSupplier, Include... includes)
      Finish the request and return a new HttpExchange instance.
      Parameters:
      response - the recordable HTTP response
      principalSupplier - a supplier to provide the principal
      sessionIdSupplier - a supplier to provide the session ID
      includes - the options to include
      Returns:
      a new HttpExchange instance
    • finish

      public HttpExchange finish(Clock clock, RecordableHttpResponse response, Supplier<@Nullable Principal> principalSupplier, Supplier<@Nullable String> sessionIdSupplier, Include... includes)
      Finish the request and return a new HttpExchange instance.
      Parameters:
      clock - the clock to use
      response - the recordable HTTP response
      principalSupplier - a supplier to provide the principal
      sessionIdSupplier - a supplier to provide the session ID
      includes - the options to include
      Returns:
      a new HttpExchange instance
    • finish

      public HttpExchange finish(RecordableHttpResponse response, Supplier<@Nullable Principal> principalSupplier, Supplier<@Nullable String> sessionIdSupplier, Set<Include> includes)
      Finish the request and return a new HttpExchange instance.
      Parameters:
      response - the recordable HTTP response
      principalSupplier - a supplier to provide the principal
      sessionIdSupplier - a supplier to provide the session ID
      includes - the options to include
      Returns:
      a new HttpExchange instance
    • finish

      public HttpExchange finish(Clock clock, RecordableHttpResponse response, Supplier<@Nullable Principal> principalSupplier, Supplier<@Nullable String> sessionIdSupplier, Set<Include> includes)
      Finish the request and return a new HttpExchange instance.
      Parameters:
      clock - the clock to use
      response - the recordable HTTP response
      principalSupplier - a supplier to provide the principal
      sessionIdSupplier - a supplier to provide the session ID
      includes - the options to include
      Returns:
      a new HttpExchange instance