|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.nio.protocol.HttpAsyncRequestHandlerRegistry
UriHttpAsyncRequestHandlerMapper
@Contract(threading=SAFE) @Deprecated public class HttpAsyncRequestHandlerRegistry
Maintains a map of HTTP request handlers keyed by a request URI pattern.
Patterns may have three formats:
*
*<uri>
<uri>*
HttpAsyncRequestHandler
matching a particular request URI. Usually the resolved request handler
will be used to process the request with the specified request URI.
Constructor Summary | |
---|---|
HttpAsyncRequestHandlerRegistry()
Deprecated. |
Method Summary | |
---|---|
Map<String,HttpAsyncRequestHandler<?>> |
getHandlers()
Deprecated. Get the handler map. |
HttpAsyncRequestHandler<?> |
lookup(String requestURI)
Deprecated. Looks up a handler matching the given request URI. |
void |
register(String pattern,
HttpAsyncRequestHandler<?> handler)
Deprecated. Registers the given HttpAsyncRequestHandler as a handler for URIs
matching the given pattern. |
void |
setHandlers(Map<String,HttpAsyncRequestHandler<?>> 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 HttpAsyncRequestHandlerRegistry()
Method Detail |
---|
public void register(String pattern, HttpAsyncRequestHandler<?> handler)
HttpAsyncRequestHandler
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,HttpAsyncRequestHandler<?>> map)
map
- the map containing handlers keyed by their URI patterns.public Map<String,HttpAsyncRequestHandler<?>> getHandlers()
public HttpAsyncRequestHandler<?> lookup(String requestURI)
HttpAsyncRequestHandlerResolver
lookup
in interface HttpAsyncRequestHandlerResolver
requestURI
- 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 |