Class UriPatternOrderedMatcher<T>
java.lang.Object
org.apache.hc.core5.http.protocol.UriPatternOrderedMatcher<T>
- Type Parameters:
T- The type of registered objects.
- All Implemented Interfaces:
LookupRegistry<T>
@Contract(threading=SAFE)
@Deprecated
public class UriPatternOrderedMatcher<T>
extends Object
implements LookupRegistry<T>
Deprecated.
Maintains a map of objects keyed by a request URI pattern.
Patterns may have three formats:
**<uri><uri>*
This class can be used to resolve an object matching a particular request URI.
- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentrySet()Deprecated.Returns aSetview of the mappings contained in this matcher.Deprecated.Looks up an object matching the given request path.protected booleanmatchUriRequestPattern(String pattern, String path) Deprecated.Tests if the given request path matches the given pattern.voidDeprecated.Registers the given object for URIs matching the given pattern.toString()Deprecated.voidunregister(String pattern) Deprecated.Removes registered object, if exists, for the given pattern.
-
Constructor Details
-
UriPatternOrderedMatcher
public UriPatternOrderedMatcher()Deprecated.
-
-
Method Details
-
entrySet
Deprecated.Returns aSetview of the mappings contained in this matcher.- Returns:
- a set view of the mappings contained in this matcher.
- Since:
- 4.4.9
- See Also:
-
register
Deprecated.Registers the given object for URIs matching the given pattern.- Specified by:
registerin interfaceLookupRegistry<T>- Parameters:
pattern- the pattern to register the handler for.obj- the object.
-
unregister
Deprecated.Removes registered object, if exists, for the given pattern.- Specified by:
unregisterin interfaceLookupRegistry<T>- Parameters:
pattern- the pattern to unregister.
-
lookup
Deprecated.Looks up an object matching the given request path.- Specified by:
lookupin interfaceLookupRegistry<T>- Parameters:
path- the request path- Returns:
- object or
nullif no match is found.
-
matchUriRequestPattern
Deprecated.Tests if the given request path matches the given pattern.- Parameters:
pattern- the patternpath- the request path- Returns:
trueif the request URI matches the pattern,falseotherwise.
-
toString
Deprecated.
-
RequestRouterfor request routing.