Interface NiceUriFactory<T extends NiceUri>

Type Parameters:
T - The type of NiceUri that is created by the implementing factory.
All Known Implementing Classes:
AdminUriFactory, EntityUriFactory, PublicUriFactory

public interface NiceUriFactory<T extends NiceUri>
A factory for creating NiceUris.
  • Method Details

    • matchesUriPattern

      boolean matchesUriPattern(String uri)
      Determine whether this factory can create a NiceUri for the given URI.
      Parameters:
      uri - The URI to check.
      Returns:
      true, if the URI matches the required pattern, else false.
    • create

      T create(String uri)
      Create the NiceUri.
      Parameters:
      uri - The URI to create a NiceUri for.
      Returns:
      the created NiceUri.
    • uriClass

      Class<T> uriClass()