Interface LookupRegistry<T>
-
- Type Parameters:
T- The type of objects to register and lookup.
- All Known Implementing Classes:
UriPatternMatcher,UriPatternOrderedMatcher,UriRegexMatcher
@Deprecated public interface LookupRegistry<T>Deprecated.UseRequestRouterfor request routing.A lookup registry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Tlookup(java.lang.String value)Deprecated.Looks up an object matching the given request path.voidregister(java.lang.String pattern, T obj)Deprecated.Registers the given object for URIs matching the given pattern.voidunregister(java.lang.String pattern)Deprecated.Removes registered object, if exists, for the given pattern.
-
-
-
Method Detail
-
register
void register(java.lang.String pattern, T obj)Deprecated.Registers the given object for URIs matching the given pattern.- Parameters:
pattern- the pattern to register the handler for.obj- the object.
-
lookup
T lookup(java.lang.String value)
Deprecated.Looks up an object matching the given request path.- Parameters:
value- the request path- Returns:
- object or
nullif no match is found.
-
unregister
void unregister(java.lang.String pattern)
Deprecated.Removes registered object, if exists, for the given pattern.- Parameters:
pattern- the pattern to unregister.
-
-