T - The type of objects to register and lookup.public interface LookupRegistry<T>
| Modifier and Type | Method and Description | 
|---|---|
| T | lookup(String value)Looks up an object matching the given request path. | 
| void | register(String pattern,
        T obj)Registers the given object for URIs matching the given pattern. | 
| void | unregister(String pattern)Removes registered object, if exists, for the given pattern. | 
void register(String pattern, T obj)
pattern - the pattern to register the handler for.obj - the object.T lookup(String value)
value - the request pathnull if no match is found.void unregister(String pattern)
pattern - the pattern to unregister.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.