Class SimpleNamespaceService

  • All Implemented Interfaces:
    org.trellisldp.api.NamespaceService

    @ApplicationScoped
    public class SimpleNamespaceService
    extends Object
    implements org.trellisldp.api.NamespaceService
    A simple, in-memory namespace service.

    This service will load some standard namespaces/prefixes and read system properties into the namespace maping if they are defined like so: "trellis.ns-myprefix=http://example.com/namespace"

    • Constructor Detail

      • SimpleNamespaceService

        public SimpleNamespaceService()
        Create a simple, in-memory namespace service.
    • Method Detail

      • getNamespaces

        public Map<String,​String> getNamespaces()
        Specified by:
        getNamespaces in interface org.trellisldp.api.NamespaceService
      • setPrefix

        public boolean setPrefix​(String prefix,
                                 String namespace)
        Specified by:
        setPrefix in interface org.trellisldp.api.NamespaceService