Class SessionNamespaceResolver
java.lang.Object
org.apache.jackrabbit.spi.commons.namespace.SessionNamespaceResolver
- All Implemented Interfaces:
NamespaceResolver
helper class that exposes the
NamespaceResolver
interface on a Session.-
Constructor Summary
ConstructorsConstructorDescriptionSessionNamespaceResolver(Session session) Creates a new namespace resolver based on a session -
Method Summary
-
Constructor Details
-
SessionNamespaceResolver
Creates a new namespace resolver based on a session- Parameters:
session-
-
-
Method Details
-
getPrefix
Returns the prefix which is mapped to the given URI.- Specified by:
getPrefixin interfaceNamespaceResolver- Parameters:
uri- namespace URI- Returns:
- the prefix mapped to the given URI.
- Throws:
NamespaceException- if the URI is unknown.
-
getURI
Returns the URI to which the given prefix is mapped.- Specified by:
getURIin interfaceNamespaceResolver- Parameters:
prefix- namespace prefix- Returns:
- the namespace URI to which the given prefix is mapped.
- Throws:
NamespaceException- if the prefix is unknown.
-