Package org.apache.http.nio.protocol
Class HttpAsyncRequestHandlerRegistry
java.lang.Object
org.apache.http.nio.protocol.HttpAsyncRequestHandlerRegistry
- All Implemented Interfaces:
HttpAsyncRequestHandlerResolver
@Contract(threading=SAFE)
@Deprecated
public class HttpAsyncRequestHandlerRegistry
extends Object
implements HttpAsyncRequestHandlerResolver
Deprecated.
Maintains a map of HTTP request handlers keyed by a request URI pattern.
Patterns may have three formats:
This class can be used to resolve an instance of
Patterns may have three formats:
*
*<uri>
<uri>*
This class can be used to resolve an instance of
HttpAsyncRequestHandler
matching a particular request URI. Usually the resolved request handler
will be used to process the request with the specified request URI.- Since:
- 4.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the handler map.Deprecated.Looks up a handler matching the given request URI.void
register
(String pattern, HttpAsyncRequestHandler<?> handler) Deprecated.Registers the givenHttpAsyncRequestHandler
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.
-
Constructor Details
-
HttpAsyncRequestHandlerRegistry
public HttpAsyncRequestHandlerRegistry()Deprecated.
-
-
Method Details
-
register
Deprecated.Registers the givenHttpAsyncRequestHandler
as a handler for URIs matching the given pattern.- Parameters:
pattern
- the pattern to register the handler for.handler
- the handler.
-
unregister
Deprecated.Removes registered handler, if exists, for the given pattern.- Parameters:
pattern
- the pattern to unregister the handler for.
-
setHandlers
Deprecated.Sets handlers from the given map.- Parameters:
map
- the map containing handlers keyed by their URI patterns.
-
getHandlers
Deprecated.Get the handler map.- Returns:
- The map of handlers and their associated URI patterns.
-
lookup
Deprecated.Description copied from interface:HttpAsyncRequestHandlerResolver
Looks up a handler matching the given request URI.- Specified by:
lookup
in interfaceHttpAsyncRequestHandlerResolver
- Parameters:
requestURI
- the request URI- Returns:
- HTTP request handler or
null
if no match is found.
-
UriHttpAsyncRequestHandlerMapper