@MinimumAcl(value=READER) public class GetDocumentAttachment extends AsyncDominoJNXBuffer
Endpoint to stream an attachment from a document
AsyncDominoBase.RequestType
apiName, appTags, logger, requestParams, UNNEEDED_CALL, user, vertx
Constructor and Description |
---|
GetDocumentAttachment() |
Modifier and Type | Method and Description |
---|---|
void |
process(DbRequestParameters<io.vertx.core.buffer.Buffer> request)
Actual work is done here.
|
protected void |
processDominoRequest(io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject> incoming)
The processDominoRequest method provides the EventBusResponseSubscriber that listens to the result of the database operation.
|
getDbRequestParameters
accessControlCheck, dontCallProcessPayload, emitterToObserver, getActualDatabaseName, getApiName, getAppTags, getBarbican, getEventbusId, getKeepDbInfo, getRequestType, getSubscriber, getUser, getUserForMetrics, isProcessPayloadRequired, isWorkInProgress, recordAppMetrics, setApiName, setBarbican, setDbFileName, setKeepDbInfo, setProcessPayloadRequired, setRequestParams, setRequestType, setSubscriber, setUser, setVertx, subscribe, validateDqlAccess, validateOpenAccess, validationCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customValidator, preflight
public void process(DbRequestParameters<io.vertx.core.buffer.Buffer> request) throws java.lang.Exception
AsyncDominoBase
Actual work is done here. The DbRequestParameters injects all needed components as well as functions like validation and results
request
- DbRequestParameters granting access to session and databasejava.lang.Exception
- Anything that can go wrong, will go wrongprotected void processDominoRequest(@Nonnull io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject> incoming)
AsyncDominoJNXBuffer
The processDominoRequest method provides the EventBusResponseSubscriber that listens to the result of the database operation. Most operations return JSON, but some (Attachments, MIME content) use Buffers. This default method uses JSON responses, overwrite this method in your extension to AsyncDominoJNX with an EventBusResponseSubscriber expecting your data type
processDominoRequest
in class AsyncDominoJNXBuffer
incoming
-