public interface NamespacesManager
The NamespacesManager provides access and editing for the namespaces defined on the server.
To use NamespacesManager, an application must authenticate as rest-admin.
| Modifier and Type | Method and Description |
|---|---|
void |
addPrefix(String prefix,
String namespaceURI)
Creates a namespace binding on the server.
|
void |
deleteAll()
Deletes all namespace bindings on the server.
|
void |
deletePrefix(String prefix)
Deletes a namespace binding on the server.
|
NamespaceContext |
readAll()
Reads all of the namespace bindings from the server.
|
String |
readPrefix(String prefix)
Returns the namespace URI bound to the specified prefix on the server.
|
void |
startLogging(RequestLogger logger)
Starts debugging client requests.
|
void |
stopLogging()
Stops debugging client requests.
|
void |
updatePrefix(String prefix,
String namespaceURI)
Writes a namespace binding on the server.
|
String readPrefix(String prefix) throws ForbiddenUserException, FailedRequestException
Returns the namespace URI bound to the specified prefix on the server.
prefix - the prefix for the bindingForbiddenUserExceptionFailedRequestExceptionNamespaceContext readAll() throws ForbiddenUserException, FailedRequestException
Reads all of the namespace bindings from the server.
ForbiddenUserExceptionFailedRequestExceptionvoid addPrefix(String prefix, String namespaceURI) throws ForbiddenUserException, FailedRequestException
Creates a namespace binding on the server.
prefix - the prefix bound to the URInamespaceURI - the URI bound to the prefixForbiddenUserExceptionFailedRequestExceptionvoid updatePrefix(String prefix, String namespaceURI) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Writes a namespace binding on the server.
prefix - the prefix bound to the URInamespaceURI - the URI bound to the prefixResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionvoid deletePrefix(String prefix) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Deletes a namespace binding on the server.
prefix - the prefix bound to the URIResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionvoid deleteAll()
throws ForbiddenUserException,
FailedRequestException
Deletes all namespace bindings on the server.
void startLogging(RequestLogger logger)
Starts debugging client requests. You can suspend and resume debugging output using the methods of the logger.
logger - the logger that receives debugging outputvoid stopLogging()
Stops debugging client requests.
Copyright © 2013-2017 MarkLogic Corporation.