Example usage for org.springframework.web.util.pattern PathPattern combine

List of usage examples for org.springframework.web.util.pattern PathPattern combine

Introduction

In this page you can find the example usage for org.springframework.web.util.pattern PathPattern combine.

Prototype

public PathPattern combine(PathPattern pattern2string) 

Source Link

Document

Combine this pattern with another.

Usage

From source file:org.springframework.web.servlet.function.RequestPredicates.java

private static PathPattern mergePatterns(@Nullable PathPattern oldPattern, PathPattern newPattern) {
    if (oldPattern != null) {
        return oldPattern.combine(newPattern);
    } else {// ww w .  ja  va2  s .  c o  m
        return newPattern;
    }

}