Package org.apache.http.protocol
Class UriPatternMatcher<T>
- java.lang.Object
-
- org.apache.http.protocol.UriPatternMatcher<T>
-
-
Constructor Summary
Constructors Constructor Description UriPatternMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Map<String,T>getObjects()Deprecated.(4.1) do not useTlookup(String path)Looks up an object matching the given request path.voidregister(String pattern, T obj)Registers the given object for URIs matching the given pattern.voidsetHandlers(Map<String,T> map)Deprecated.(4.1) do not usevoidsetObjects(Map<String,T> map)Deprecated.(4.1) do not useStringtoString()voidunregister(String pattern)Removes registered object, if exists, for the given pattern.
-
-
-
Method Detail
-
register
public void register(String pattern, T obj)
Registers the given object for URIs matching the given pattern.- Parameters:
pattern- the pattern to register the handler for.obj- the object.
-
unregister
public void unregister(String pattern)
Removes registered object, if exists, for the given pattern.- Parameters:
pattern- the pattern to unregister.
-
setHandlers
@Deprecated public void setHandlers(Map<String,T> map)
Deprecated.(4.1) do not use
-
setObjects
@Deprecated public void setObjects(Map<String,T> map)
Deprecated.(4.1) do not use
-
getObjects
@Deprecated public Map<String,T> getObjects()
Deprecated.(4.1) do not use
-
lookup
public T lookup(String path)
Looks up an object matching the given request path.- Parameters:
path- the request path- Returns:
- object or
nullif no match is found.
-
-