org.apache.http.protocol
Class HttpRequestHandlerRegistry
java.lang.Object
org.apache.http.protocol.HttpRequestHandlerRegistry
- All Implemented Interfaces:
- HttpRequestHandlerResolver
public class HttpRequestHandlerRegistry
- extends Object
- implements HttpRequestHandlerResolver
Maintains a map of HTTP request handlers keyed by a request URI pattern.
HttpRequestHandler instances can be looked up by request URI
using the HttpRequestHandlerResolver interface.
Patterns may have three formats:
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequestHandlerRegistry
public HttpRequestHandlerRegistry()
register
public void register(String pattern,
HttpRequestHandler handler)
unregister
public void unregister(String pattern)
setHandlers
public void setHandlers(Map map)
lookup
public HttpRequestHandler lookup(String requestURI)
- Specified by:
lookup in interface HttpRequestHandlerResolver
matchUriRequestPattern
protected boolean matchUriRequestPattern(String pattern,
String requestUri)
- Deprecated.
Please submit a feedback, bug or feature