public interface TransformExtensionsManager
A Transform Extensions Manager supports writing, reading, and deleting a Transform extension as well as listing the installed Transform extensions. A Transform extension implements conversion of content on the server. For instance, a Transform extension can convert HTML documents to XHTML documents on write or XML documents to HTML documents on read.
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTransform(String transformName)
Uninstalls the transform.
|
<T extends StructureReadHandle> |
listTransforms(T listHandle)
Lists the installed transform extensions.
|
<T extends StructureReadHandle> |
listTransforms(T listHandle,
boolean refresh)
Lists the installed transform extensions, specifying whether to refresh the metadata about each extension by parsing the extension source.
|
<T> T |
listTransformsAs(Format format,
Class<T> as)
Reads the list of transform extensions installed on the server in a JSON or XML representation provided as an object of an IO class.
|
<T> T |
listTransformsAs(Format format,
Class<T> as,
boolean refresh)
Reads the list of transform extensions installed on the server in a JSON or XML representation provided as an object of an IO class.
|
<T extends TextReadHandle> |
readJavascriptTransform(String transformName,
T sourceHandle)
Reads the source for a transform implemented in Javascript.
|
<T> T |
readJavascriptTransformAs(String transformName,
Class<T> as)
Reads the source for a transform implemented in Javascript in a textual representation provided as an object of an IO class.
|
<T extends TextReadHandle> |
readXQueryTransform(String transformName,
T sourceHandle)
Reads the source for a transform implemented in XQuery.
|
<T> T |
readXQueryTransformAs(String transformName,
Class<T> as)
Reads the source for a transform implemented in XQuery in a textual representation provided as an object of an IO class.
|
<T extends XMLReadHandle> |
readXSLTransform(String transformName,
T sourceHandle)
Reads the source for a transform implemented in XSLT.
|
<T> T |
readXSLTransformAs(String transformName,
Class<T> as)
Reads the source for a transform implemented in XSLT in an XML representation provided as an object of an IO class.
|
void |
startLogging(RequestLogger logger)
Starts debugging client requests.
|
void |
stopLogging()
Stops debugging client requests.
|
void |
writeJavascriptTransform(String transformName,
TextWriteHandle sourceHandle)
Installs a transform implemented in Javascript.
|
void |
writeJavascriptTransform(String transformName,
TextWriteHandle sourceHandle,
ExtensionMetadata metadata)
Installs a transform implemented in Javascript.
|
void |
writeJavascriptTransformAs(String transformName,
ExtensionMetadata metadata,
Object source)
Installs a transform implemented in Javascript in a textual representation provided as an object of an IO class.
|
void |
writeJavascriptTransformAs(String transformName,
Object source)
Installs a transform implemented in XQuery in a textual representation provided as an object of an IO class.
|
void |
writeXQueryTransform(String transformName,
TextWriteHandle sourceHandle)
Installs a transform implemented in XQuery.
|
void |
writeXQueryTransform(String transformName,
TextWriteHandle sourceHandle,
ExtensionMetadata metadata)
Installs a transform implemented in XQuery.
|
void |
writeXQueryTransformAs(String transformName,
ExtensionMetadata metadata,
Object source)
Installs a transform implemented in XQuery in a textual representation provided as an object of an IO class.
|
void |
writeXQueryTransformAs(String transformName,
Object source)
Installs a transform implemented in XQuery in a textual representation provided as an object of an IO class.
|
void |
writeXSLTransform(String transformName,
XMLWriteHandle sourceHandle)
Installs a transform implemented in XSL.
|
void |
writeXSLTransform(String transformName,
XMLWriteHandle sourceHandle,
ExtensionMetadata metadata)
Installs a transform implemented in XSL.
|
void |
writeXSLTransformAs(String transformName,
ExtensionMetadata metadata,
Object source)
Installs a transform implemented in XSL in an XML representation provided as an object of an IO class.
|
void |
writeXSLTransformAs(String transformName,
Object source)
Installs a transform implemented in XSL in an XML representation provided as an object of an IO class.
|
<T> T listTransformsAs(Format format, Class<T> as)
Reads the list of transform extensions installed on the server in a JSON or XML representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
T - the type of object that will be returned by the handle registered for itformat - whether to provide the list in a JSON or XML representationas - the IO class for reading the list of transform extensions<T> T listTransformsAs(Format format, Class<T> as, boolean refresh)
Reads the list of transform extensions installed on the server in a JSON or XML representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
T - the type of object that will be returned by the handle registered for itformat - whether to provide the list in a JSON or XML representationas - the IO class for reading the list of transform extensionsrefresh - whether to parse metadata from the extension source<T extends StructureReadHandle> T listTransforms(T listHandle) throws ForbiddenUserException, FailedRequestException
Lists the installed transform extensions.
T - the type of StructureReadHandle to returnlistHandle - a handle on a JSON or XML representation of the listForbiddenUserExceptionFailedRequestException<T extends StructureReadHandle> T listTransforms(T listHandle, boolean refresh) throws ForbiddenUserException, FailedRequestException
Lists the installed transform extensions, specifying whether to refresh the metadata about each extension by parsing the extension source.
T - the type of StructureReadHandle to returnlistHandle - a handle on a JSON or XML representation of the listrefresh - whether to parse metadata from the extension sourceForbiddenUserExceptionFailedRequestException<T> T readXSLTransformAs(String transformName, Class<T> as) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Reads the source for a transform implemented in XSLT in an XML representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
T - the type of object that will be returned by the handle registered for ittransformName - the name of the transformas - the IO class for reading the source code as XMLResourceNotFoundExceptionForbiddenUserExceptionFailedRequestException<T extends XMLReadHandle> T readXSLTransform(String transformName, T sourceHandle) throws FailedRequestException, ResourceNotFoundException, ForbiddenUserException
Reads the source for a transform implemented in XSLT.
T - the type of XMLReadHandle to returntransformName - the name of the transformsourceHandle - a handle for reading the text of the XSLT implementation.FailedRequestExceptionResourceNotFoundExceptionForbiddenUserException<T> T readXQueryTransformAs(String transformName, Class<T> as) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Reads the source for a transform implemented in XQuery in a textual representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
T - the type of object that will be returned by the handle registered for ittransformName - the name of the transformas - the IO class for reading the source code as textResourceNotFoundExceptionForbiddenUserExceptionFailedRequestException<T extends TextReadHandle> T readXQueryTransform(String transformName, T sourceHandle) throws FailedRequestException, ResourceNotFoundException, ForbiddenUserException
Reads the source for a transform implemented in XQuery.
T - the type of TextReadHandle to returntransformName - the name of the transformsourceHandle - a handle for reading the text of the XQuery implementation.FailedRequestExceptionResourceNotFoundExceptionForbiddenUserException<T> T readJavascriptTransformAs(String transformName, Class<T> as) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Reads the source for a transform implemented in Javascript in a textual representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
T - the type of object that will be returned by the handle registered for ittransformName - the name of the transformas - the IO class for reading the source code as textResourceNotFoundExceptionForbiddenUserExceptionFailedRequestException<T extends TextReadHandle> T readJavascriptTransform(String transformName, T sourceHandle) throws FailedRequestException, ResourceNotFoundException, ForbiddenUserException
Reads the source for a transform implemented in Javascript.
T - the type of TextReadHandle to returntransformName - the name of the transformsourceHandle - a handle for reading the text of the Javascript implementation.FailedRequestExceptionResourceNotFoundExceptionForbiddenUserExceptionvoid writeXSLTransformAs(String transformName, Object source) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in XSL in an XML representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
transformName - the name of the transformsource - an IO representation of the source codeResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeXSLTransformAs(String transformName, ExtensionMetadata metadata, Object source) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in XSL in an XML representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
transformName - the name of the transformmetadata - the metadata about the transformsource - an IO representation of the source codeResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeXSLTransform(String transformName, XMLWriteHandle sourceHandle) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in XSL.
transformName - the name of the resourcesourceHandle - a handle on the source for the XSL implementationResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeXSLTransform(String transformName, XMLWriteHandle sourceHandle, ExtensionMetadata metadata) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in XSL.
transformName - the name of the resourcesourceHandle - a handle on the source for the XSL implementationmetadata - the metadata about the transformResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeXQueryTransformAs(String transformName, Object source) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in XQuery in a textual representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
transformName - the name of the transformsource - an IO representation of the source codeResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeXQueryTransformAs(String transformName, ExtensionMetadata metadata, Object source) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in XQuery in a textual representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
transformName - the name of the transformmetadata - the metadata about the transformsource - an IO representation of the source codeResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeXQueryTransform(String transformName, TextWriteHandle sourceHandle) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in XQuery.
transformName - the name of the resourcesourceHandle - a handle on the source for the XQuery implementationResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeXQueryTransform(String transformName, TextWriteHandle sourceHandle, ExtensionMetadata metadata) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in XQuery.
transformName - the name of the resourcesourceHandle - a handle on the source for the XQuery implementationmetadata - the metadata about the transformResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeJavascriptTransformAs(String transformName, Object source) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in XQuery in a textual representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
transformName - the name of the transformsource - an IO representation of the source codeResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeJavascriptTransformAs(String transformName, ExtensionMetadata metadata, Object source) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in Javascript in a textual representation provided as an object of an IO class.
The IO class must have been registered before creating the database client. By default, the provided handles that implement ContentHandle are registered.
transformName - the name of the transformmetadata - the metadata about the transformsource - an IO representation of the source codeResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeJavascriptTransform(String transformName, TextWriteHandle sourceHandle) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in Javascript.
transformName - the name of the resourcesourceHandle - a handle on the source for the Javascript implementationResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid writeJavascriptTransform(String transformName, TextWriteHandle sourceHandle, ExtensionMetadata metadata) throws ResourceNotFoundException, ResourceNotResendableException, ForbiddenUserException, FailedRequestException
Installs a transform implemented in Javascript.
transformName - the name of the resourcesourceHandle - a handle on the source for the Javascript implementationmetadata - the metadata about the transformResourceNotFoundExceptionResourceNotResendableExceptionForbiddenUserExceptionFailedRequestExceptionvoid deleteTransform(String transformName) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Uninstalls the transform.
transformName - the name of the transformResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionvoid 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.