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

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

Introduction

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

Prototype

private PatternsRequestCondition(Collection<String> patterns, @Nullable UrlPathHelper urlPathHelper,
        @Nullable PathMatcher pathMatcher, boolean useSuffixPatternMatch, boolean useTrailingSlashMatch,
        @Nullable List<String> fileExtensions) 

Source Link

Document

Private constructor accepting a collection of patterns.

Usage

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);
}