Interface Response
-
- All Known Subinterfaces:
HttpClientResponse,HttpResponse,HttpServerResponse
public interface ResponseThis API is taken from OpenZipkin Brave. Abstract response type used for parsing and sampling.- Since:
- 3.0.0
- Author:
- OpenZipkin Brave Authors, Marcin Grzejszczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Throwableerror()Collection<String>headerNames()Requestrequest()Span.KindspanKind()Objectunwrap()
-
-
-
Method Detail
-
headerNames
Collection<String> headerNames()
- Returns:
- list of header names.
-
spanKind
Span.Kind spanKind()
- Returns:
- The remote
Span.Kinddescribing the direction and type of the request.
-
request
@Nullable Request request()
- Returns:
- corresponding request
-
error
@Nullable Throwable error()
- Returns:
- exception that occurred or
nullif there was none.
-
unwrap
Object unwrap()
- Returns:
- the underlying request object or
nullif there is none.
-
-