Patterns may have three formats:
**<uri><uri>*This class can be used to resolve an object matching a particular request URI.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized Set | |
| public synchronized T | Returns: object ornull if no match is found.the request path path)Implements org. |
| protected boolean | Returns: true if the request URI matches the pattern, false otherwise.the pattern pattern, final String the request path path)Tests if the given request path matches the given pattern. |
| public synchronized void | register(final String
the pattern to register the handler for. pattern, final T the object. obj)Implements org. |
| public String | |
| public synchronized void | unregister(final String
the pattern to unregister. pattern)Implements org. |
| map | back to summary |
|---|---|
| private final Map<String, T> map | |
| UriPatternMatcher | back to summary |
|---|---|
| public UriPatternMatcher() | |
| entrySet | back to summary |
|---|---|
| public synchronized Set Returns a
| |
| lookup | back to summary |
|---|---|
| public synchronized T lookup(final String path) Implements org. Looks up an object matching the given request path. | |
| matchUriRequestPattern | back to summary |
|---|---|
| protected boolean matchUriRequestPattern(final String pattern, final String path) Tests if the given request path matches the given pattern. | |
| register | back to summary |
|---|---|
| public synchronized void register(final String pattern, final T obj) Implements org. Registers the given object for URIs matching the given pattern. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unregister | back to summary |
|---|---|
| public synchronized void unregister(final String pattern) Implements org. Removes registered object, if exists, for the given pattern. | |