public interface DocumentUriTemplate extends ContentDescriptor
A DocumentUriTemplate specifies how the server should construct a name for a document.
UNKNOWN_LENGTH| Modifier and Type | Method and Description |
|---|---|
String |
getDirectory()
Returns the directory that should prefix the document uri.
|
String |
getExtension()
Returns the extension that should suffix the document uri.
|
void |
setDirectory(String directory)
Specifies the directory that should prefix the document uri.
|
void |
setExtension(String extension)
Specifies the extension that should suffix the document uri.
|
DocumentUriTemplate |
withDirectory(String directory)
Specifies the directory that should prefix the document uri and returns the template object.
|
DocumentUriTemplate |
withFormat(Format format)
Specifies the format of the document and returns the template object.
|
getByteLength, getFormat, getMimetype, setByteLength, setFormat, setMimetypeString getDirectory()
Returns the directory that should prefix the document uri.
void setDirectory(String directory)
Specifies the directory that should prefix the document uri.
directory - the directory.DocumentUriTemplate withDirectory(String directory)
Specifies the directory that should prefix the document uri and returns the template object.
directory - the directory.String getExtension()
Returns the extension that should suffix the document uri.
void setExtension(String extension)
Specifies the extension that should suffix the document uri. The extension should not start with the period separator.
extension - the extension.DocumentUriTemplate withFormat(Format format)
Specifies the format of the document and returns the template object.
format - the format.Copyright © 2013-2017 MarkLogic Corporation.