R
- type of the contained request bodyM
- type of the contained message parameterspublic class HandlerRequest<R extends RequestBody,M extends MessageParameters> extends Object
RequestBody
and path/query parameters.Constructor and Description |
---|
HandlerRequest(R requestBody,
M messageParameters) |
HandlerRequest(R requestBody,
M messageParameters,
Map<String,String> receivedPathParameters,
Map<String,List<String>> receivedQueryParameters) |
HandlerRequest(R requestBody,
M messageParameters,
Map<String,String> receivedPathParameters,
Map<String,List<String>> receivedQueryParameters,
Collection<File> uploadedFiles) |
Modifier and Type | Method and Description |
---|---|
<X,PP extends MessagePathParameter<X>> |
getPathParameter(Class<PP> parameterClass)
Returns the value of the
MessagePathParameter for the given class. |
<X,QP extends MessageQueryParameter<X>> |
getQueryParameter(Class<QP> parameterClass)
Returns the value of the
MessageQueryParameter for the given class. |
R |
getRequestBody()
Returns the request body.
|
Collection<File> |
getUploadedFiles() |
public HandlerRequest(R requestBody, M messageParameters) throws HandlerRequestException
HandlerRequestException
public HandlerRequest(R requestBody, M messageParameters, Map<String,String> receivedPathParameters, Map<String,List<String>> receivedQueryParameters) throws HandlerRequestException
HandlerRequestException
public HandlerRequest(R requestBody, M messageParameters, Map<String,String> receivedPathParameters, Map<String,List<String>> receivedQueryParameters, Collection<File> uploadedFiles) throws HandlerRequestException
HandlerRequestException
public R getRequestBody()
public <X,PP extends MessagePathParameter<X>> X getPathParameter(Class<PP> parameterClass)
MessagePathParameter
for the given class.X
- the value type that the parameter containsPP
- type of the path parameterparameterClass
- class of the parameterIllegalStateException
- if no value is defined for the given parameter classpublic <X,QP extends MessageQueryParameter<X>> List<X> getQueryParameter(Class<QP> parameterClass)
MessageQueryParameter
for the given class.X
- the value type that the parameter containsQP
- type of the query parameterparameterClass
- class of the parameter@Nonnull public Collection<File> getUploadedFiles()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.