Search in sources :

Example 1 with RequestParameter

use of com.iggroup.oss.restdoclet.doclet.type.RequestParameter in project RESTdoclet by IG-Group.

the class MethodBuilder method initRequestParams.

/**
    * Initialises the request-parameters of this method.
    * 
    * @param params the method's parameters.
    * @param tags the parameters' Java documentation tags.
    */
private void initRequestParams(Method method, final Parameter[] params, final ParamTag[] tags) {
    LOG.debug(method.getName());
    ArrayList<RequestParameter> requestParams = new ArrayList<RequestParameter>();
    for (Parameter param : params) {
        if (isAnnotated(param, RequestParam.class)) {
            requestParams.add(new RequestParameterBuilder().build(new RequestParameter(), param, tags));
        }
    }
    method.setRequestParams(requestParams);
}
Also used : RequestParameter(com.iggroup.oss.restdoclet.doclet.type.RequestParameter) ArrayList(java.util.ArrayList) ModelParameter(com.iggroup.oss.restdoclet.doclet.type.ModelParameter) Parameter(com.sun.javadoc.Parameter) PathParameter(com.iggroup.oss.restdoclet.doclet.type.PathParameter) ResponseParameter(com.iggroup.oss.restdoclet.doclet.type.ResponseParameter) RestParameter(com.iggroup.oss.restdoclet.doclet.type.RestParameter) RequestParameter(com.iggroup.oss.restdoclet.doclet.type.RequestParameter) BodyParameter(com.iggroup.oss.restdoclet.doclet.type.BodyParameter)

Aggregations

BodyParameter (com.iggroup.oss.restdoclet.doclet.type.BodyParameter)1 ModelParameter (com.iggroup.oss.restdoclet.doclet.type.ModelParameter)1 PathParameter (com.iggroup.oss.restdoclet.doclet.type.PathParameter)1 RequestParameter (com.iggroup.oss.restdoclet.doclet.type.RequestParameter)1 ResponseParameter (com.iggroup.oss.restdoclet.doclet.type.ResponseParameter)1 RestParameter (com.iggroup.oss.restdoclet.doclet.type.RestParameter)1 Parameter (com.sun.javadoc.Parameter)1 ArrayList (java.util.ArrayList)1