Package com.linkedin.alpini.base.misc
Interface BasicRequest
-
- All Known Implementing Classes:
BasicFullHttpMultiPartRequest
,BasicFullHttpRequest
,BasicHttpRequest
,Http1FullRequest
,Http1Request
public interface BasicRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getMethodName()
The request method namelong
getRequestContentLength()
The content length of the request body in bytes, as retrieved by the header, or -1 if not known.Headers
getRequestHeaders()
The request headers.java.util.UUID
getRequestId()
A computed UUID for the requestlong
getRequestNanos()
High precision nanotime at which the request was received.long
getRequestTimestamp()
Timestamp at which the request was received.static long
getRequestTimestamp(java.lang.Object o)
java.lang.String
getUri()
The request URI
-
-
-
Method Detail
-
getMethodName
java.lang.String getMethodName()
The request method name- Returns:
- method string
-
getUri
java.lang.String getUri()
The request URI- Returns:
- uri string
-
getRequestId
java.util.UUID getRequestId()
A computed UUID for the request- Returns:
- uuid
-
getRequestTimestamp
long getRequestTimestamp()
Timestamp at which the request was received.- Returns:
- timestamp
- See Also:
Time.currentTimeMillis()
-
getRequestNanos
long getRequestNanos()
High precision nanotime at which the request was received.- Returns:
- timestamp
- See Also:
Time.nanoTime()
-
getRequestContentLength
long getRequestContentLength()
The content length of the request body in bytes, as retrieved by the header, or -1 if not known.- Returns:
- content length
-
getRequestHeaders
Headers getRequestHeaders()
The request headers.- Returns:
- headers
-
getRequestTimestamp
static long getRequestTimestamp(java.lang.Object o)
-
-