- java.lang.Object
-
- brave.http.HttpServerResponse
-
public abstract class HttpServerResponse extends java.lang.ObjectMarks an interface for use inHttpServerHandler.handleSend(Object, Throwable, Span). This gives a standard type to consider when parsing an outgoing context.- Since:
- 5.7
- See Also:
HttpServerRequest
-
-
Constructor Summary
Constructors Constructor Description HttpServerResponse()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longfinishTimestamp()java.lang.Stringmethod()java.lang.Stringroute()abstract intstatusCode()java.lang.StringtoString()abstract java.lang.Objectunwrap()Returns the underlying http response object.
-
-
-
Method Detail
-
unwrap
public abstract java.lang.Object unwrap()
Returns the underlying http response object. Ex.javax.servlet.http.HttpServletResponseNote: Some implementations are composed of multiple types, such as a response and an object representing the matched route. Moreover, an implementation may change the type returned due to refactoring. Unless you control the implementation, cast carefully (ex using
instance of) instead of presuming a specific type will always be returned.
-
method
@Nullable public java.lang.String method()
- See Also:
HttpAdapter.methodFromResponse(Object)
-
route
@Nullable public java.lang.String route()
- See Also:
HttpAdapter.route(Object)
-
statusCode
public abstract int statusCode()
- See Also:
HttpAdapter.statusCodeAsInt(Object)
-
finishTimestamp
public long finishTimestamp()
- See Also:
HttpAdapter.finishTimestamp(Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-