public interface PathBinder
They are used to conditionally execute handlers based on the request path.
Modifier and Type | Method and Description |
---|---|
PathBinding |
bind(String path,
PathBinding parentBinding)
Creates a binding for the given path, if this binder can bind to this path.
|
@Nullable PathBinding bind(String path, @Nullable PathBinding parentBinding)
A binder may use whatever strategy it desires to decider whether or not it wants to create a binding for the given path.
path
- The path to maybe create a binding forparentBinding
- The most recent upstream binding for this path, or null if there is no upstream binding