use of com.iggroup.oss.restdoclet.doclet.type.BodyParameter in project RESTdoclet by IG-Group.
the class MethodBuilder method initBodyParams.
/**
* Initialises the request body parameters of this method.
*
* @param params the method's parameters.
* @param tags the parameters' Java documentation tags.
*/
private void initBodyParams(Method method, final Parameter[] params, final ParamTag[] tags) {
LOG.debug(method.getName());
ArrayList<BodyParameter> bodyParams = new ArrayList<BodyParameter>();
for (Parameter param : params) {
if (isAnnotated(param, RequestBody.class)) {
LOG.debug("YYYYYYYYYYYYYYYYYY");
bodyParams.add(new BodyParameterBuilder().build(new BodyParameter(), param, tags));
}
}
method.setBodyParams(bodyParams);
}
Aggregations