Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2014 Red Hat, Inc.. All rights reserved. This program and the accompanying materials are made available under the terms of the GNU Public License v3.0 which accompanies this distribution, and is available at http://www.gnu.org/licenses/gpl.html Contributors: Red Hat, Inc. - initial API and implementation /
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