|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.protocol.HttpRequestHandlerRegistry
UriHttpRequestHandlerMapper
@Contract(threading=SAFE) @Deprecated public class HttpRequestHandlerRegistry
Maintains a map of HTTP request handlers keyed by a request URI pattern.
Patterns may have three formats:
**<uri><uri>*HttpRequestHandler matching a particular request URI. Usually the
resolved request handler will be used to process the request with the
specified request URI.
| Constructor Summary | |
|---|---|
HttpRequestHandlerRegistry()
Deprecated. |
|
| Method Summary | |
|---|---|
Map<String,HttpRequestHandler> |
getHandlers()
Deprecated. Get the handler map. |
HttpRequestHandler |
lookup(String requestURI)
Deprecated. Looks up a handler matching the given request URI. |
void |
register(String pattern,
HttpRequestHandler handler)
Deprecated. Registers the given HttpRequestHandler as a handler for URIs
matching the given pattern. |
void |
setHandlers(Map<String,HttpRequestHandler> map)
Deprecated. Sets handlers from the given map. |
void |
unregister(String pattern)
Deprecated. Removes registered handler, if exists, for the given pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRequestHandlerRegistry()
| Method Detail |
|---|
public void register(String pattern,
HttpRequestHandler handler)
HttpRequestHandler as a handler for URIs
matching the given pattern.
pattern - the pattern to register the handler for.handler - the handler.public void unregister(String pattern)
pattern - the pattern to unregister the handler for.public void setHandlers(Map<String,HttpRequestHandler> map)
map - the map containing handlers keyed by their URI patterns.public Map<String,HttpRequestHandler> getHandlers()
public HttpRequestHandler lookup(String requestURI)
HttpRequestHandlerResolver
lookup in interface HttpRequestHandlerResolverrequestURI - the request URI
null if no match
is found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||