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