public interface ResourceServices
ResourceExtensionsManager.
A ResourceManager object
receives a ResourceServices object when it is initialized by the
DatabaseClient.init() method.| Modifier and Type | Interface | 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 | Description |
|---|---|---|
<R extends AbstractReadHandle> |
delete(RequestParameters params,
Transaction transaction,
R output) |
Deletes content by calling a DELETE service.
|
<R extends AbstractReadHandle> |
delete(RequestParameters params,
R output) |
Deletes content by calling a DELETE service.
|
ResourceServices.ServiceResultIterator |
get(RequestParameters params,
Transaction transaction,
java.lang.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,
java.lang.String... mimetypes) |
Reads multiple resource content by calling a GET service.
|
<R extends AbstractReadHandle> |
get(RequestParameters params,
R output) |
Reads resource content by calling a GET service.
|
RequestLogger |
getRequestLogger() |
Returns the logger for debugging client requests.
|
java.lang.String |
getResourceName() |
Returns the name of the resource.
|
ResourceServices.ServiceResultIterator |
post(RequestParameters params,
AbstractWriteHandle input,
Transaction transaction,
java.lang.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,
java.lang.String... mimetypes) |
Applies multiple content by calling a POST service.
|
<R extends AbstractReadHandle> |
post(RequestParameters params,
AbstractWriteHandle input,
R output) |
Applies content by calling a POST service.
|
<W extends AbstractWriteHandle> |
post(RequestParameters params,
W[] input,
Transaction transaction,
java.lang.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,
java.lang.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.
|
<R extends AbstractReadHandle> |
put(RequestParameters params,
AbstractWriteHandle input,
Transaction transaction,
R output) |
Writes content by calling a PUT service.
|
<R extends AbstractReadHandle> |
put(RequestParameters params,
AbstractWriteHandle input,
R output) |
Writes 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.
|
<R extends AbstractReadHandle,W extends AbstractWriteHandle> |
put(RequestParameters params,
W[] input,
R output) |
Writes multiple content by calling a PUT service.
|
void |
startLogging(RequestLogger logger) |
Starts debugging client requests.
|
void |
stopLogging() |
Stops debugging client requests.
|
java.lang.String getResourceName()
<R extends AbstractReadHandle> R get(RequestParameters params, R output)
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)
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, java.lang.String... mimetypes)
params - the parameters for the callmimetypes - the mimetypes for the requested contentResourceServices.ServiceResultIterator get(RequestParameters params, Transaction transaction, java.lang.String... mimetypes)
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)
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)
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)
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)
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)
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)
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)
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)
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, java.lang.String... mimetypes)
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, java.lang.String... mimetypes)
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, java.lang.String... mimetypes)
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, java.lang.String... mimetypes)
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)
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)
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)
logger - the logger that receives debugging outputRequestLogger getRequestLogger()
void stopLogging()
Copyright © 2013-2019 MarkLogic Corporation.