Top Description Methods
org.apache.hc.core5.http.protocol

public Interface LookupRegistry<T>

Known Direct Implementers
org.apache.hc.core5.http.protocol.UriPatternMatcher, org.apache.hc.core5.http.protocol.UriPatternOrderedMatcher, org.apache.hc.core5.http.protocol.UriRegexMatcher
Type Parameters
<T>
The type of objects to register and lookup.

A lookup registry.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

object or null if no match is found.
lookup
(String
the request path
value
)

Looks up an object matching the given request path.

public void
register(String
the pattern to register the handler for.
pattern
,
T
the object.
obj
)

Registers the given object for URIs matching the given pattern.

public void
unregister(String
the pattern to unregister.
pattern
)

Removes registered object, if exists, for the given pattern.

Method Detail

lookupback to summary
public T lookup(String value)

Looks up an object matching the given request path.

Parameters
value:String

the request path

Returns:T

object or null if no match is found.

registerback to summary
public void register(String pattern, T obj)

Registers the given object for URIs matching the given pattern.

Parameters
pattern:String

the pattern to register the handler for.

obj:T

the object.

unregisterback to summary
public void unregister(String pattern)

Removes registered object, if exists, for the given pattern.

Parameters
pattern:String

the pattern to unregister.