public interface ResourceServices
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.
|
ResourceServices.ServiceResultIterator |
get(RequestParameters params)
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.
|
ResourceServices.ServiceResultIterator |
get(RequestParameters params,
Transaction transaction)
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.
|
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)
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.
|
ResourceServices.ServiceResultIterator |
post(RequestParameters params,
AbstractWriteHandle input,
Transaction transaction)
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.
|
<W extends AbstractWriteHandle> |
post(RequestParameters params,
W[] input)
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, Transaction transaction)
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.
|
<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.
|
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)
params
- the parameters for the callResourceServices.ServiceResultIterator get(RequestParameters params, Transaction transaction)
params
- the parameters for the calltransaction
- the transaction for reading
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)
params
- the parameters for the callinput
- the content passed with the callResourceServices.ServiceResultIterator post(RequestParameters params, AbstractWriteHandle input, Transaction transaction)
params
- the parameters for the callinput
- the content passed with the calltransaction
- the transaction for applying
content<W extends AbstractWriteHandle> ResourceServices.ServiceResultIterator post(RequestParameters params, W[] input)
W
- the type of AbstractWriteHandle's with content
to sendparams
- the parameters for the callinput
- an array of content passed with the
call<W extends AbstractWriteHandle> ResourceServices.ServiceResultIterator post(RequestParameters params, W[] input, Transaction transaction)
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
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 © 2024 MarkLogic Corporation. All Rights Reserved.