- Type Parameters:
T
- type of the request wrapped by the adapter
public interface CorsRequestAdapter<T>
Not for use by developers.
Minimal abstraction of an HTTP request.
-
Method Summary
Modifier and TypeMethodDescriptionallHeaders
(HeaderName key) Retrieves all header values for a given key as Strings.firstHeader
(HeaderName key) Retrieves the first value for the specified header as a String.boolean
Reports whether the specified header exists.method()
Reports the method name for the request.void
next()
Processes the next handler/filter/request processor in the chain.path()
request()
Returns the request this adapter wraps.Returns theUriInfo
for the request.
-
Method Details
-
path
String path()- Returns:
- possibly unnormalized path from the request
-
requestedUri
UriInfo requestedUri()Returns theUriInfo
for the request.- Returns:
- URI info for the request
-
firstHeader
Retrieves the first value for the specified header as a String.- Parameters:
key
- header name to retrieve- Returns:
- the first header value for the key
-
headerContainsKey
Reports whether the specified header exists.- Parameters:
key
- header name to check for- Returns:
- whether the header exists among the request's headers
-
allHeaders
Retrieves all header values for a given key as Strings.- Parameters:
key
- header name to retrieve- Returns:
- header values for the header; empty list if none
-
method
String method()Reports the method name for the request.- Returns:
- the method name
-
next
void next()Processes the next handler/filter/request processor in the chain. -
request
T request()Returns the request this adapter wraps.- Returns:
- the request
-