public class UriPathSelector extends ObjectSelector<Object,UriPathTemplate>
Selector
implementation based on a UriPathTemplate
.UriPathTemplate
Constructor and Description |
---|
UriPathSelector(String uriPathTmpl)
Create a selector from the given uri template string.
|
Modifier and Type | Method and Description |
---|---|
HeaderResolver |
getHeaderResolver()
Return a component that can resolve headers from a key
|
boolean |
matches(Object path)
Indicates whether this Selector matches the
key . |
static Selector |
uriPathSelector(String uriTemplate)
Creates a
Selector based on a URI template. |
clone, getObject, objectSelector, test, toString
public UriPathSelector(String uriPathTmpl)
uriPathTmpl
- The string to compile into a UriPathTemplate
.public static Selector uriPathSelector(String uriTemplate)
Selector
based on a URI template.uriTemplate
- The URI template to compile.Selector
.UriPathTemplate
public boolean matches(Object path)
Selector
key
.matches
in interface Selector<Object>
matches
in class ObjectSelector<Object,UriPathTemplate>
path
- The key to matchtrue
if there's a match, otherwise false
.public HeaderResolver getHeaderResolver()
Selector
getHeaderResolver
in interface Selector<Object>
getHeaderResolver
in class ObjectSelector<Object,UriPathTemplate>
HeaderResolver
applicable to this Selector
type.Copyright © 2017. All rights reserved.