Java Code Examples for org.springframework.web.util.pattern.PathElement

Following code examples demonstrate how to use org.springframework.web.util.pattern.PathElementfrom spring-framework. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.springframework.web.util.pattern.PathElementand various code implementation of this class.

	private final void assertPathElements(PathPattern p, Class<? extends PathElement>... sectionClasses) {
		PathElement head = p.getHeadSection();
		for (Class<? extends PathElement> sectionClass : sectionClasses) {
			if (head == null) {
				fail("Ran out of data in parsed pattern. Pattern is: " + p.toChainString());
			assertEquals("Not expected section type. Pattern is: " + p.toChainString(),
					sectionClass.getSimpleName(), head.getClass().getSimpleName());
			head =;

Common supertype for the Ast nodes created to represent a path pattern. @author Andy Clement @since


Read More