FileDocCategorySizeDatePackage
HttpRequestHandlerRegistry.javaAPI DocAndroid 1.5 API2847Wed May 06 22:41:10 BST 2009org.apache.http.protocol

HttpRequestHandlerRegistry

public class HttpRequestHandlerRegistry extends Object implements HttpRequestHandlerResolver
Maintains a map of HTTP request handlers keyed by a request URI pattern. {@link HttpRequestHandler} instances can be looked up by request URI using the {@link HttpRequestHandlerResolver} interface.
Patterns may have three formats:
  • *
  • *<uri>
  • <uri>*
author
Oleg Kalnichevski
version
$Revision: 630662 $

Fields Summary
private final UriPatternMatcher
matcher
Constructors Summary
public HttpRequestHandlerRegistry()

        matcher = new UriPatternMatcher();
    
Methods Summary
public org.apache.http.protocol.HttpRequestHandlerlookup(java.lang.String requestURI)

        return (HttpRequestHandler) matcher.lookup(requestURI);
    
protected booleanmatchUriRequestPattern(java.lang.String pattern, java.lang.String requestUri)

deprecated

        return matcher.matchUriRequestPattern(pattern, requestUri);
    
public voidregister(java.lang.String pattern, org.apache.http.protocol.HttpRequestHandler handler)

        matcher.register(pattern, handler);
    
public voidsetHandlers(java.util.Map map)

        matcher.setHandlers(map);
    
public voidunregister(java.lang.String pattern)

        matcher.unregister(pattern);