Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2013 John Casey. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. /
package org.commonjava.vertx.vabr.anno.proc;
import  org.vertx.java.core.buffer.Buffer;
import  org.vertx.java.core.http.HttpServerRequest;
public final class RoutingTemplateInfo
    extends AbstractTemplateInfo
    private final String httpContentType;
    private final BindingType binding;
    private final String routeKey;
    private final List<StringcallParams;
    public RoutingTemplateInfofinal Element elemfinal Route routefinal Handles handles )
    {
        superelemhandlesroute.priority(), route.method(), route.path(), route.value() );
        this. = route.contentType();
        this. = route.binding();
        this. = route.routeKey();
        if (  == . )
        {
             = Collections.singletonList"request" );
        }
        else
        {
            final ExecutableElement ee = (ExecutableElementelem;
            final List<? extends VariableElementparameters = ee.getParameters();
             = new ArrayList<>();
            ..println"Found " + parameters.size() + " parameters" );
            for ( final VariableElement param : parameters )
            {
                final String typeStr = param.asType()
                                            .toString();
                ..println"Found parameter of type: " + typeStr );
                if ( typeStr.equals( Buffer.class.getName() ) )
                {
                    .add"body" );
                }
                else if ( typeStr.equals( HttpServerRequest.class.getName() ) )
                {
                    .add"request" );
                }
            }
        }
    }
    public List<StringgetCallParams()
    {
        return ;
    }
    public String getHttpContentType()
    {
        return ;
    }
    public BindingType getBinding()
    {
        return ;
    }
    public String getRouteKey()
    {
        return ;
    }
New to GrepCode? Check out our FAQ X