Package org.springframework.web.servlet.mvc.method

Examples of org.springframework.web.servlet.mvc.method.RequestMappingInfo


        i++;
      }
    }
    PatternsRequestCondition patternsInfo = new PatternsRequestCondition(patterns);

    RequestMappingInfo modified = new RequestMappingInfo(patternsInfo,
        mapping.getMethodsCondition(), mapping.getParamsCondition(),
        mapping.getHeadersCondition(), mapping.getConsumesCondition(),
        mapping.getProducesCondition(), mapping.getCustomCondition());

    super.registerHandlerMethod(handler, method, modified);
View Full Code Here


    this.customAnnotationReaders = customAnnotationReaders;
  }

  @Override
  public void execute(RequestMappingContext context) {
    RequestMappingInfo requestMappingInfo = context.getRequestMappingInfo();
    HandlerMethod handlerMethod = context.getHandlerMethod();
    PatternsRequestCondition patternsCondition = requestMappingInfo.getPatternsCondition();

    List<ApiDescription> apiDescriptionList = newArrayList();
    for (String pattern : patternsCondition.getPatterns()) {
      String cleanedRequestMappingPath = sanitizeRequestMappingPattern(pattern);
      String path = swaggerPathProvider.getOperationPath(cleanedRequestMappingPath);
View Full Code Here

        return getMappingForMethod( method, userType ) != null;
      }
    } );

    for ( Method method : methods ) {
      RequestMappingInfo mapping = getMappingForMethod( method, userType );
      registerHandlerMethod( handler, method, mapping );
    }
  }
View Full Code Here

    return handlerMatcher.matches( ClassUtils.getUserClass( beanType ) );
  }

  @Override
  protected RequestMappingInfo getMappingForMethod( Method method, Class<?> handlerType ) {
    RequestMappingInfo info = super.getMappingForMethod( method, handlerType );

    if ( info != null && prefixPath != null ) {
      RequestMappingInfo other = new RequestMappingInfo( new PatternsRequestCondition( prefixPath ),
                                                         new RequestMethodsRequestCondition(),
                                                         new ParamsRequestCondition(),
                                                         new HeadersRequestCondition(),
                                                         new ConsumesRequestCondition(),
                                                         new ProducesRequestCondition(), null );

      info = other.combine( info );
    }

    return info;
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.mvc.method.RequestMappingInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.