- java.lang.Object
-
- brave.http.HttpServerRequest
-
public abstract class HttpServerRequest extends java.lang.ObjectMarks an interface for use inHttpServerHandler.handleReceive(HttpServerRequest). This gives a standard type to consider when parsing an incoming context.- Since:
- 5.7
- See Also:
HttpServerResponse
-
-
Constructor Summary
Constructors Constructor Description HttpServerRequest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Stringheader(java.lang.String name)abstract java.lang.Stringmethod()booleanparseClientIpAndPort(Span span)Override and return true when it is possible to parse theremote IP and portfrom thedelegate.abstract java.lang.Stringpath()longstartTimestamp()java.lang.StringtoString()abstract java.lang.Objectunwrap()Returns the underlying http request object.abstract java.lang.Stringurl()
-
-
-
Method Detail
-
unwrap
public abstract java.lang.Object unwrap()
Returns the underlying http request object. Ex.javax.servlet.http.HttpServletRequestNote: Some implementations are composed of multiple types, such as a request and a socket address of the client. 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 abstract java.lang.String method()
- See Also:
HttpAdapter.method(Object)
-
path
@Nullable public abstract java.lang.String path()
- See Also:
HttpAdapter.path(Object)
-
url
@Nullable public abstract java.lang.String url()
- See Also:
HttpAdapter.url(Object)
-
header
@Nullable public abstract java.lang.String header(java.lang.String name)
-
parseClientIpAndPort
public boolean parseClientIpAndPort(Span span)
Override and return true when it is possible to parse theremote IP and portfrom thedelegate. Defaults to false.
-
startTimestamp
public long startTimestamp()
- See Also:
HttpAdapter.startTimestamp(Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-