Package com.yahoo.restapi
Interface RestApi.RequestContext
-
- Enclosing interface:
- RestApi
public static interface RestApi.RequestContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RestApi.RequestContext.Attributes
static interface
RestApi.RequestContext.Headers
static interface
RestApi.RequestContext.Parameters
static interface
RestApi.RequestContext.PathParameters
static interface
RestApi.RequestContext.QueryParameters
static interface
RestApi.RequestContext.RequestContent
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AclMapping.Action
aclAction()
RestApi.RequestContext.Attributes
attributes()
RestApi.RequestContext.Headers
headers()
com.fasterxml.jackson.databind.ObjectMapper
jacksonJsonMapper()
RestApi.RequestContext.PathParameters
pathParameters()
RestApi.RequestContext.QueryParameters
queryParameters()
HttpRequest
request()
Optional<RestApi.RequestContext.RequestContent>
requestContent()
RestApi.RequestContext.RequestContent
requestContentOrThrow()
UriBuilder
uriBuilder()
Creates a URI builder pre-initialized with scheme, host and port.Optional<Principal>
userPrincipal()
Principal
userPrincipalOrThrow()
-
-
-
Method Detail
-
request
HttpRequest request()
-
pathParameters
RestApi.RequestContext.PathParameters pathParameters()
-
queryParameters
RestApi.RequestContext.QueryParameters queryParameters()
-
headers
RestApi.RequestContext.Headers headers()
-
attributes
RestApi.RequestContext.Attributes attributes()
-
requestContent
Optional<RestApi.RequestContext.RequestContent> requestContent()
-
requestContentOrThrow
RestApi.RequestContext.RequestContent requestContentOrThrow()
-
jacksonJsonMapper
com.fasterxml.jackson.databind.ObjectMapper jacksonJsonMapper()
-
uriBuilder
UriBuilder uriBuilder()
Creates a URI builder pre-initialized with scheme, host and port. Intended for response generation (e.g for interactive REST APIs). DO NOT USE FOR CUSTOM ROUTING.
-
aclAction
AclMapping.Action aclAction()
-
userPrincipalOrThrow
Principal userPrincipalOrThrow()
-
-