public interface CallManager
Modifier and Type | Interface and Description |
---|---|
static interface |
CallManager.CallableEndpoint
Specifies an endpoint that can be used for building calls as returned by CallManager.endpoint()
The CallableEndpoint class is immutable and threadsafe.
|
static interface |
CallManager.CallArgs
Provides the input parameters for a specific call to a data service.
|
static interface |
CallManager.EndpointDefiner |
static interface |
CallManager.ManyCaller<R> |
static interface |
CallManager.NoneCaller |
static interface |
CallManager.OneCaller<R> |
static interface |
CallManager.Paramdef
Provides a read-only declaration of a parameter for the endpoint.
|
static interface |
CallManager.Returndef
Provides a read-only declaration of the return value for an endpoint that can return a value.
|
Modifier and Type | Method and Description |
---|---|
CallManager.CallableEndpoint |
endpoint(JSONWriteHandle serviceDeclaration,
JSONWriteHandle endpointDeclaration,
java.lang.String extension)
Starts building a call by identifying the data service endpoint to be called.
|
SessionState |
newSessionState()
A factory that constructs a session for maintaining state across calls.
|
static CallManager |
on(DatabaseClient client)
A factory that constructs a call manager for a database client.
|
static CallManager on(DatabaseClient client)
client
- the database client to use when making callsSessionState newSessionState()
CallManager.CallableEndpoint endpoint(JSONWriteHandle serviceDeclaration, JSONWriteHandle endpointDeclaration, java.lang.String extension)
serviceDeclaration
- the service.json data structure declaring the common properties of a bundle of data servicesendpointDeclaration
- the *.api data structure declaring the functional signature for a data serviceextension
- either "sjs" or "xqy" depending on whether the endpoint is implemented in server-side JavaScript or XQueryCopyright © 2013-2018 MarkLogic Corporation.