public interface ResourceServices
A ResourceServices object supports calling the services for a resource. The Resource Services extension must have been installed on the server previously, which can be done with ResourceExtensionsManager. A ResourceManager object receives a ResourceServices object when it is initialized by the DatabaseClient.init() method.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ResourceServices.ServiceResult
ServiceResult provides one content response from a service.
|
static interface |
ResourceServices.ServiceResultIterator
ServiceResultIterator provides an iterator over content responses from the server.
|
| Modifier and Type | Method and Description |
|---|---|
<R extends AbstractReadHandle> |
delete(RequestParameters params,
R output)
Deletes content by calling a DELETE service.
|
<R extends AbstractReadHandle> |
delete(RequestParameters params,
Transaction transaction,
R output)
Deletes content by calling a DELETE service.
|
<R extends AbstractReadHandle> |
get(RequestParameters params,
R output)
Reads resource content by calling a GET service.
|
ResourceServices.ServiceResultIterator |
get(RequestParameters params,
String... mimetypes)
Reads multiple resource content by calling a GET service.
|
<R extends AbstractReadHandle> |
get(RequestParameters params,
Transaction transaction,
R output)
Reads resource content by calling a GET service.
|
ResourceServices.ServiceResultIterator |
get(RequestParameters params,
Transaction transaction,
String... mimetypes)
Reads multiple resource content by calling a GET service.
|
RequestLogger |
getRequestLogger()
Returns the logger for debugging client requests.
|
String |
getResourceName()
Returns the name of the resource.
|
<R extends AbstractReadHandle> |
post(RequestParameters params,
AbstractWriteHandle input,
R output)
Applies content by calling a POST service.
|
ResourceServices.ServiceResultIterator |
post(RequestParameters params,
AbstractWriteHandle input,
String... mimetypes)
Applies multiple content by calling a POST service.
|
<R extends AbstractReadHandle> |
post(RequestParameters params,
AbstractWriteHandle input,
Transaction transaction,
R output)
Applies content by calling a POST service.
|
ResourceServices.ServiceResultIterator |
post(RequestParameters params,
AbstractWriteHandle input,
Transaction transaction,
String... mimetypes)
Applies multiple content by calling a POST service.
|
<R extends AbstractReadHandle,W extends AbstractWriteHandle> |
post(RequestParameters params,
W[] input,
R output)
Applies content by calling a POST service.
|
<W extends AbstractWriteHandle> |
post(RequestParameters params,
W[] input,
String... mimetypes)
Applies multiple content by calling a POST service.
|
<R extends AbstractReadHandle,W extends AbstractWriteHandle> |
post(RequestParameters params,
W[] input,
Transaction transaction,
R output)
Applies content by calling a POST service.
|
<W extends AbstractWriteHandle> |
post(RequestParameters params,
W[] input,
Transaction transaction,
String... mimetypes)
Applies multiple content by calling a POST service.
|
<R extends AbstractReadHandle> |
put(RequestParameters params,
AbstractWriteHandle input,
R output)
Writes content by calling a PUT service.
|
<R extends AbstractReadHandle> |
put(RequestParameters params,
AbstractWriteHandle input,
Transaction transaction,
R output)
Writes content by calling a PUT service.
|
<R extends AbstractReadHandle,W extends AbstractWriteHandle> |
put(RequestParameters params,
W[] input,
R output)
Writes multiple content by calling a PUT service.
|
<R extends AbstractReadHandle,W extends AbstractWriteHandle> |
put(RequestParameters params,
W[] input,
Transaction transaction,
R output)
Writes multiple content by calling a PUT service.
|
void |
startLogging(RequestLogger logger)
Starts debugging client requests.
|
void |
stopLogging()
Stops debugging client requests.
|
String getResourceName()
Returns the name of the resource.
<R extends AbstractReadHandle> R get(RequestParameters params, R output)
Reads resource content by calling a GET service.
R - the type of AbstractReadHandle to returnparams - the parameters for the calloutput - a handle on the content returned by the call<R extends AbstractReadHandle> R get(RequestParameters params, Transaction transaction, R output)
Reads resource content by calling a GET service.
R - the type of AbstractReadHandle to returnparams - the parameters for the calltransaction - the transaction for reading contentoutput - a handle on the content returned by the callResourceServices.ServiceResultIterator get(RequestParameters params, String... mimetypes)
Reads multiple resource content by calling a GET service.
params - the parameters for the callmimetypes - the mimetypes for the requested contentResourceServices.ServiceResultIterator get(RequestParameters params, Transaction transaction, String... mimetypes)
Reads multiple resource content by calling a GET service.
params - the parameters for the calltransaction - the transaction for reading contentmimetypes - the mimetypes for the requested content<R extends AbstractReadHandle> R put(RequestParameters params, AbstractWriteHandle input, R output)
Writes content by calling a PUT service.
R - the type of AbstractReadHandle to returnparams - the parameters for the callinput - the content passed with the calloutput - a handle on the content response from the call<R extends AbstractReadHandle> R put(RequestParameters params, AbstractWriteHandle input, Transaction transaction, R output)
Writes content by calling a PUT service.
R - the type of AbstractReadHandle to returnparams - the parameters for the callinput - the content passed with the calltransaction - the transaction for writing contentoutput - a handle on the content response from the call<R extends AbstractReadHandle,W extends AbstractWriteHandle> R put(RequestParameters params, W[] input, R output)
Writes multiple content by calling a PUT service.
R - the type of AbstractReadHandle to returnW - the type of AbstractWriteHandle’s with content to sendparams - the parameters for the callinput - an array of content passed with the calloutput - a handle on the content response from the call<R extends AbstractReadHandle,W extends AbstractWriteHandle> R put(RequestParameters params, W[] input, Transaction transaction, R output)
Writes multiple content by calling a PUT service.
R - the type of AbstractReadHandle to returnW - the type of AbstractWriteHandle’s with content to sendparams - the parameters for the callinput - an array of content passed with the calltransaction - the transaction for writing contentoutput - a handle on the content response from the call<R extends AbstractReadHandle> R post(RequestParameters params, AbstractWriteHandle input, R output)
Applies content by calling a POST service.
R - the type of AbstractReadHandle to returnparams - the parameters for the callinput - the content passed with the calloutput - a handle on the content response from the call<R extends AbstractReadHandle> R post(RequestParameters params, AbstractWriteHandle input, Transaction transaction, R output)
Applies content by calling a POST service.
R - the type of AbstractReadHandle to returnparams - the parameters for the callinput - the content passed with the calltransaction - the transaction for applying contentoutput - a handle on the content response from the call<R extends AbstractReadHandle,W extends AbstractWriteHandle> R post(RequestParameters params, W[] input, R output)
Applies content by calling a POST service.
R - the type of AbstractReadHandle to returnW - the type of AbstractWriteHandle’s with content to sendparams - the parameters for the callinput - an array of content passed with the calloutput - a handle on the content response from the call<R extends AbstractReadHandle,W extends AbstractWriteHandle> R post(RequestParameters params, W[] input, Transaction transaction, R output)
Applies content by calling a POST service.
R - the type of AbstractReadHandle to returnW - the type of AbstractWriteHandle’s with content to sendparams - the parameters for the callinput - an array of content passed with the calltransaction - the transaction for applying contentoutput - a handle on the content response from the callResourceServices.ServiceResultIterator post(RequestParameters params, AbstractWriteHandle input, String... mimetypes)
Applies multiple content by calling a POST service.
params - the parameters for the callinput - the content passed with the callmimetypes - the mimetypes for the requested contentResourceServices.ServiceResultIterator post(RequestParameters params, AbstractWriteHandle input, Transaction transaction, String... mimetypes)
Applies multiple content by calling a POST service.
params - the parameters for the callinput - the content passed with the calltransaction - the transaction for applying contentmimetypes - the mimetypes for the requested content<W extends AbstractWriteHandle> ResourceServices.ServiceResultIterator post(RequestParameters params, W[] input, String... mimetypes)
Applies multiple content by calling a POST service.
W - the type of AbstractWriteHandle’s with content to sendparams - the parameters for the callinput - an array of content passed with the callmimetypes - the mimetypes for the requested content<W extends AbstractWriteHandle> ResourceServices.ServiceResultIterator post(RequestParameters params, W[] input, Transaction transaction, String... mimetypes)
Applies multiple content by calling a POST service.
W - the type of AbstractWriteHandle’s with content to sendparams - the parameters for the callinput - an array of content passed with the calltransaction - the transaction for applying contentmimetypes - the mimetypes for the requested content<R extends AbstractReadHandle> R delete(RequestParameters params, R output)
Deletes content by calling a DELETE service.
R - the type of AbstractReadHandle to returnparams - the parameters for the calloutput - a handle on the content response from the call<R extends AbstractReadHandle> R delete(RequestParameters params, Transaction transaction, R output)
Deletes content by calling a DELETE service.
R - the type of AbstractReadHandle to returnparams - the parameters for the calltransaction - the transaction for applying contentoutput - a handle on the content response from the callvoid 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 outputRequestLogger getRequestLogger()
Returns the logger for debugging client requests.
void stopLogging()
Stops debugging client requests.
Copyright © 2013-2017 MarkLogic Corporation.