Class Registry<I>

java.lang.Object
org.apache.hc.core5.http.config.Registry<I>
Type Parameters:
I - the type of values to lookup.
All Implemented Interfaces:
Lookup<I>

@Contract(threading=SAFE) public final class Registry<I> extends Object implements Lookup<I>
Generic registry of items keyed by low-case string ID.
Since:
4.3
  • Method Details

    • lookup

      public I lookup(String key)
      Description copied from interface: Lookup
      Looks up a value using a lower-case string ID.
      Specified by:
      lookup in interface Lookup<I>
      Parameters:
      key - The lookup name.
      Returns:
      The matching value.
    • toString

      public String toString()
      Overrides:
      toString in class Object