//extract the param mappings for the Body Content Annotations
if(!getBodyContentAnnotations().isEmpty()) {
final Sequence requestBody = extractRequestBody(request);
for(final HttpMethodWithBodyAnnotation bodyContentAnnotation : getBodyContentAnnotations()) {
paramNameValues.add(new TypedArgumentValue(){
@Override
public String getArgumentName() {
return bodyContentAnnotation.getBodyParameterName();
}
@Override
public Sequence getTypedValue() {
return requestBody;
}
});
}
}
//extract the param mappings for Param Annotations
for(final ParameterAnnotation parameterAnnotation : getResourceFunction().getParameterAnnotations()) {
final TypedArgumentValue typedArgumentValue = parameterAnnotation.extractParameter(request);
paramNameValues.add(new TypedArgumentValue(){
@Override
public String getArgumentName() {
return typedArgumentValue.getArgumentName();
}
@Override
public Sequence getTypedValue() {
return typedArgumentValue.getTypedValue();
}
});
}
return paramNameValues;