- java.lang.Object
-
- org.trellisldp.namespace.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"
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_NAMESPACE_MAPPING
-
Constructor Summary
Constructors Constructor Description SimpleNamespaceService()Create a simple, in-memory namespace service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getNamespaces()booleansetPrefix(String prefix, String namespace)
-
-
-
Field Detail
-
CONFIG_NAMESPACE_MAPPING
public static final String CONFIG_NAMESPACE_MAPPING
- See Also:
- Constant Field Values
-
-