Example usage for org.springframework.web.servlet.mvc.condition RequestMethodsRequestCondition RequestMethodsRequestCondition

List of usage examples for org.springframework.web.servlet.mvc.condition RequestMethodsRequestCondition RequestMethodsRequestCondition

Introduction

In this page you can find the example usage for org.springframework.web.servlet.mvc.condition RequestMethodsRequestCondition RequestMethodsRequestCondition.

Prototype

RequestMethodsRequestCondition

Source Link

Usage

From source file:com.iflytek.edu.cloud.frame.spring.rest.ServiceMethodInfo.java

/**
 * Creates a new instance with the given request conditions.
 *///w  w w. ja va 2 s  .  c  o m
public ServiceMethodInfo(ServiceMethodRequestCondition patterns, RequestMethodsRequestCondition methods) {
    this.serviceMethodCondition = (patterns != null ? patterns : new ServiceMethodRequestCondition());
    this.methodsCondition = (methods != null ? methods : new RequestMethodsRequestCondition());
}

From source file:com.coinblesk.server.utils.ApiVersionRequestMappingHandlerMapping.java

private RequestMappingInfo createApiVersionInfo(ApiVersion annotation, RequestCondition<?> customCondition) {
    String[] values = annotation.value();

    return new RequestMappingInfo(
            new PatternsRequestCondition(values, getUrlPathHelper(), getPathMatcher(), useSuffixPatternMatch(),
                    useTrailingSlashMatch(), getFileExtensions()),
            new RequestMethodsRequestCondition(), new ParamsRequestCondition(), new HeadersRequestCondition(),
            new ConsumesRequestCondition(), new ProducesRequestCondition(), customCondition);
}