Class AbstractRegistryWithPrefix<X,T>

java.lang.Object
org.apache.jena.http.sys.AbstractRegistryWithPrefix<X,T>
Direct Known Subclasses:
RegistryHttpClient, RegistryRequestModifier

public abstract class AbstractRegistryWithPrefix<X,T> extends Object
Abstract base class for registries with exact and prefix lookup.

The lookup (find(X)) is by exact match then by longest prefix. e.g. a registration of "http://someHost/" or "http://someHost/dataset" will apply to "http://someHost/dataset/sparql" and "http://someHost/dataset/update" but not to "https://someHost/..." which uses "https".

  • Method Details

    • add

      public void add(X service, T value)
    • addPrefix

      public void addPrefix(X service, T value)
      Add a prefix. The prefix must end in "/"
    • find

      public T find(X findRef)
      Returns the T with either an exact match or the longest prefix for the find key.
    • remove

      public void remove(X findRef)
    • clear

      public void clear()