Interface Response
-
- All Known Subinterfaces:
HttpClientResponse
,HttpResponse
,HttpServerResponse
public interface Response
This 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 Throwable
error()
Collection<String>
headerNames()
Request
request()
Span.Kind
spanKind()
Object
unwrap()
-
-
-
Method Detail
-
headerNames
Collection<String> headerNames()
- Returns:
- list of header names.
-
spanKind
Span.Kind spanKind()
- Returns:
- The remote
Span.Kind
describing the direction and type of the request.
-
request
@Nullable Request request()
- Returns:
- corresponding request
-
error
@Nullable Throwable error()
- Returns:
- exception that occurred or
null
if there was none.
-
unwrap
Object unwrap()
- Returns:
- the underlying request object or
null
if there is none.
-
-