T - Type of API Request this RequestMapper will work onpublic abstract class RequestMapper<T extends ApiRequest> extends Object
| Constructor and Description |
|---|
RequestMapper(ResourceDictionaries resourceDictionaries)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract T |
apply(T request,
javax.ws.rs.container.ContainerRequestContext context)
Rewrite and Validate the ApiRequest(e.g.
|
ResourceDictionaries |
getResourceDictionaries() |
public RequestMapper(@NotNull
ResourceDictionaries resourceDictionaries)
resourceDictionaries - The dictionaries to use for request mapping.public abstract T apply(T request, javax.ws.rs.container.ContainerRequestContext context) throws RequestValidationException
This should throw an exception if the given/converted request is not valid.
request - the apiRequest to rewritecontext - the ContainerRequestContextRequestValidationException - with the HTTP status and user-facing error msg to abort with
if the request is not validpublic ResourceDictionaries getResourceDictionaries()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.