public interface ResourceExtensionsManager
Modifier and Type | Interface and Description |
---|---|
static class |
ResourceExtensionsManager.MethodParameters
Method Parameters declare the parameters
accepted by the Resource Services extension.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteServices(java.lang.String resourceName)
Uninstalls the services that implement a
resource.
|
<T extends StructureReadHandle> |
listServices(T listHandle)
Reads the list of resource service extensions
installed on the server.
|
<T extends StructureReadHandle> |
listServices(T listHandle,
boolean refresh)
Reads the list of resource service extensions
installed on the server, specifying whether to refresh the metadata
about each extension by parsing the extension source.
|
<T> T |
listServicesAs(Format format,
java.lang.Class<T> as)
Reads the list of resource service extensions
installed on the server in a JSON or XML representation provided as
an object of an IO class.
|
<T> T |
listServicesAs(Format format,
java.lang.Class<T> as, boolean refresh)
Reads the list of resource service extensions
installed on the server in a JSON or XML representation provided as
an object of an IO class.
|
<T extends TextReadHandle> |
readServices(java.lang.String resourceName,
T sourceHandle)
Reads the XQuery implementation of the services
for a resource.
|
<T> T |
readServicesAs(java.lang.String resourceName,
java.lang.Class<T> as)
Reads the XQuery implementation of the services
for a resource in a textual representation provided as an object of
an IO class.
|
void |
startLogging(RequestLogger logger)
Starts debugging client requests.
|
void |
stopLogging()
Stops debugging client requests.
|
void |
writeServices(java.lang.String resourceName,
TextWriteHandle sourceHandle,
ExtensionMetadata metadata,
ResourceExtensionsManager.MethodParameters... methodParams)
Installs the services that implement a
resource.
|
void |
writeServicesAs(java.lang.String resourceName,
java.lang.Object source, ExtensionMetadata metadata,
ResourceExtensionsManager.MethodParameters... methodParams)
Installs the services that implement a resource
in a textual representation provided as an object of an IO
class.
|
<T> T listServicesAs(Format format, java.lang.Class<T> as)
ContentHandle
are registered. Learn more
about shortcut methodsT
- 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 resource
service extensions<T> T listServicesAs(Format format, java.lang.Class<T> as, boolean refresh)
ContentHandle
are registered. Learn more
about shortcut methodsT
- 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 resource
service extensionsrefresh
- whether to parse metadata from the
extension source<T extends StructureReadHandle> T listServices(T listHandle)
T
- the type of StructureReadHandle to returnlistHandle
- a handle on a JSON or XML
representation of the list<T extends StructureReadHandle> T listServices(T listHandle, boolean refresh)
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 source<T> T readServicesAs(java.lang.String resourceName, java.lang.Class<T> as)
ContentHandle
are registered. Learn more
about shortcut methodsT
- the type of object that will be returned by
the handle registered for itresourceName
- the name of the resourceas
- the IO class for reading the source code as
text<T extends TextReadHandle> T readServices(java.lang.String resourceName, T sourceHandle)
T
- the type of TextReadHandle to returnresourceName
- the name of the resourcesourceHandle
- a handle for reading the text of
the XQuery implementation.void writeServicesAs(java.lang.String resourceName, java.lang.Object source, ExtensionMetadata metadata, ResourceExtensionsManager.MethodParameters... methodParams)
ContentHandle
are registered. Learn more
about shortcut methodsresourceName
- the name of the resourcesource
- an IO representation of the source
codemetadata
- the metadata about the resource
servicesmethodParams
- a declaration of the parameters for
the servicesvoid writeServices(java.lang.String resourceName, TextWriteHandle sourceHandle, ExtensionMetadata metadata, ResourceExtensionsManager.MethodParameters... methodParams)
resourceName
- the name of the resourcesourceHandle
- a handle on the source for the
XQuery implementationmetadata
- the metadata about the resource
servicesmethodParams
- a declaration of the parameters for
the servicesvoid deleteServices(java.lang.String resourceName)
resourceName
- the name of the resourcevoid startLogging(RequestLogger logger)
logger
- the logger that receives debugging
outputvoid stopLogging()
Copyright © 2024 MarkLogic Corporation. All Rights Reserved.