T - Type of ApiRequest that this mapper mapspublic class NoOpRequestMapper<T extends ApiRequest> extends RequestMapper<T>
| Constructor and Description |
|---|
NoOpRequestMapper(ResourceDictionaries resourceDictionaries)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
apply(T request,
javax.ws.rs.container.ContainerRequestContext context)
Rewrite and Validate the ApiRequest(e.g.
|
getResourceDictionariespublic NoOpRequestMapper(@NotNull
ResourceDictionaries resourceDictionaries)
resourceDictionaries - Dictionaries to use when doing the mapping.public T apply(T request, javax.ws.rs.container.ContainerRequestContext context) throws RequestValidationException
RequestMapperThis should throw an exception if the given/converted request is not valid.
apply in class RequestMapper<T extends ApiRequest>request - the apiRequest to rewritecontext - the ContainerRequestContextRequestValidationException - with the HTTP status and user-facing error msg to abort with
if the request is not validCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.