Class VaultResponse
java.lang.Object
com.veeva.vault.vapil.api.model.VaultModel
com.veeva.vault.vapil.api.model.response.VaultResponse
- Direct Known Subclasses:
ActionInitiateResponse
,ActionResponse
,ApiVersionResponse
,AuditDetailsResponse
,AuditMetadataResponse
,AuditTypesResponse
,AuthenticationResponse
,BinderExportResponse
,BinderResponse
,BinderSectionResponse
,BinderTemplateBulkResponse
,BinderTemplateBulkResponse.TemplateResult
,BinderTemplateMetadataResponse
,BinderTemplateNodeBulkResponse
,BinderTemplateNodeBulkResponse.TemplateNodeResult
,BinderTemplateResponse
,BulkTranslationImportSummaryResponse
,BulkTranslationJobResponse
,BulkWorkflowActionDetailsResponse
,BulkWorkflowActionsResponse
,BulkWorkflowJobStartResponse
,ComponentContentResponse
,ComponentQueryResponse
,CustomPagesDistributionBulkResponse
,CustomPagesDistributionResponse
,CustomPagesDistributionRetrieveResponse
,DelegatedSessionResponse
,DelegationsResponse
,DirectDataResponse
,DiscoveryResponse
,DocumentAnnotationAnchorResponse
,DocumentAnnotationBulkResponse
,DocumentAnnotationDeleteResponse
,DocumentAnnotationImportResponse
,DocumentAnnotationPlacemarkTypeMetadataResponse
,DocumentAnnotationReadResponse
,DocumentAnnotationReferenceTypeMetadataResponse
,DocumentAnnotationReplyReadResponse
,DocumentAnnotationTypeMetadataResponse
,DocumentAttachmentBulkResponse
,DocumentAttachmentResponse
,DocumentBulkResponse
,DocumentClassificationResponse
,DocumentCollaborativeCheckoutResponse
,DocumentCollaborativeCheckoutResponse.UndoCheckoutResponse
,DocumentDeletionResponse
,DocumentEventResponse
,DocumentEventSubtypeResponse
,DocumentEventTypeResponse
,DocumentExportResponse
,DocumentExportResponse.ExportedDocument
,DocumentFieldResponse
,DocumentLifecycleDeleteOverrideRulesResponse
,DocumentLifecycleRoleAssignmentResponse
,DocumentLifecycleRoleAssignmentRulesResponse
,DocumentLockResponse
,DocumentRelationshipBulkResponse
,DocumentRelationshipMetadataResponse
,DocumentRelationshipResponse
,DocumentRelationshipRetrieveResponse
,DocumentRenditionBulkResponse
,DocumentRenditionResponse
,DocumentResponse
,DocumentRoleCheckForDCCResponse
,DocumentSignatureMetadataResponse
,DocumentsResponse
,DocumentTemplateBulkResponse
,DocumentTemplateBulkResponse.TemplateResult
,DocumentTemplateMetadataResponse
,DocumentTemplateResponse
,DocumentTemplatesResponse
,DocumentTokenResponse
,DocumentTypesResponse
,DocumentVersionResponse
,DocumentWorkflowDetailsResponse
,DocumentWorkflowResponse
,DomainResponse
,DomainsResponse
,EDLMatchedDocumentResponse
,EDLResponse
,EmailNotificationHistoryResponse
,EntryCriteriaResponse
,FileStagingItemBulkResponse
,FileStagingItemResponse
,FileStagingJobResponse
,FileStagingSessionBulkResponse
,FileStagingSessionPartBulkResponse
,FileStagingSessionPartResponse
,FileStagingSessionResponse
,GroupResponse
,GroupRetrieveAutoManagedResponse
,GroupRetrieveResponse
,InitiateDocumentWorkflowResponse
,JobCreateResponse
,JobHistoryResponse
,JobMonitorResponse
,JobStatusResponse
,JobTaskResponse
,LoaderResponse
,MdlExecuteResponse
,MdlResponse
,MetaDataComponentRecordResponse
,MetaDataComponentTypeBulkResponse
,MetaDataComponentTypeResponse
,MetaDataDocumentLockResponse
,MetaDataGroupResponse
,MetaDataObjectBulkResponse
,MetaDataObjectFieldResponse
,MetaDataObjectPageLayoutResponse
,MetaDataObjectResponse
,MetaDataSecurityPolicyResponse
,MetaDataUserResponse
,ObjectMultiRecordWorkflowDetailsResponse
,ObjectMultiRecordWorkflowInitiateResponse
,ObjectMultiRecordWorkflowsResponse
,ObjectRecordActionBulkResponse
,ObjectRecordActionResponse
,ObjectRecordAttachmentResponse
,ObjectRecordBulkResponse
,ObjectRecordCollectionResponse
,ObjectRecordDeletedResponse
,ObjectRecordMergeJobResponse
,ObjectRecordMergeResultsResponse
,ObjectRecordResponse
,ObjectRecordRoleChangeResponse
,ObjectRecordRoleResponse
,ObjectRecordTypeBulkResponse
,ObjectRecordTypeBulkResponse.ResponseDetails
,ObjectRecordTypeResponse
,ObjectWorkflowActionDetailsResponse
,ObjectWorkflowActionResponse
,ObjectWorkflowResponse
,ObjectWorkflowTaskActionDetailsResponse
,ObjectWorkflowTaskResponse
,OutboundPackageDependenciesResponse
,PackageDeploymentResultsResponse
,PackageImportResultsResponse
,PicklistResponse
,PicklistValueResponse
,QueryResponse
,QueueResponse
,RoleChangeBulkResponse
,RoleChangeBulkResponse.RoleChange
,RoleChangeResponse
,RoleRetrieveResponse
,SandboxDetailsResponse
,SandboxEntitlementResponse
,SandboxResponse
,SandboxSnapshotResponse
,SCIMResponse
,SCIMUserBulkResponse
,SCIMUserResponse
,SdkDebugSessionBulkResponse
,SdkDebugSessionCreateResponse
,SdkDebugSessionCreateResponse.Data
,SdkDebugSessionResponse
,SdkProfilingSessionBulkResponse
,SdkProfilingSessionCreateResponse
,SdkProfilingSessionCreateResponse.Data
,SdkProfilingSessionResponse
,SDKResponse
,SecurityPoliciesResponse
,SecurityPolicyResponse
,UserBulkResponse
,UserLicenseUsageResponse
,UserPermissionResponse
,UserResponse
,UserRetrieveResponse
,ValidatePackageResponse
Base Vault API response message
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Content-Dispositionstatic final String
Content-Typestatic final String
X-VaultAPI-DowntimeExpectedDurationMinutesstatic final String
X-VaultAPI-Statusstatic final String
X-VaultAPI-BurstLimitstatic final String
X-VaultAPI-BurstLimitRemainingstatic final String
X-VaultAPI-ExecutionIdstatic final String
X-VaultAPI-VaultIdstatic final String
X-VaultAPI-ResponseDelaystatic final String
X-VaultAPI-SdkCountstatic final String
X-VaultAPI-SdkCpuTimestatic final String
X-VaultAPI-SdkElapsedTimestatic final String
X-VaultAPI-SdkGrossMemorystatic final String
X-VaultAPI-TruncatedSessionIdstatic final String
X-VaultAPI-UserIdstatic final String
X-VaultAPI-Statusstatic final String
responseStatus = FAILUREstatic final String
responseStatus = SUCCESSstatic final String
responseStatus = FAILURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
For requests returning binary content.getHeaderIgnoreCase
(String header) Return the file path For requests creating files.Get the full response as a string.com.fasterxml.jackson.databind.JsonNode
Get the full response as a JSON Object.boolean
Determine if the response has errors.boolean
Determine if the response has warnings.boolean
Determine if the response status equals FAILURE.boolean
Determine if the response status equals SUCCESS.boolean
Determine if the response status equals WARNING.void
setBinaryContent
(byte[] binaryContent) void
setErrors
(List<VaultResponse.APIResponseError> errors) void
setHeaders
(Map<String, List<String>> headers) void
setOutputFilePath
(String outputFilePath) void
setResponse
(String response) void
setResponseMessage
(String responseMessage) void
setResponseStatus
(String responseStatus) void
setWarnings
(List<VaultResponse.APIResponseWarning> warnings) Methods inherited from class com.veeva.vault.vapil.api.model.VaultModel
get, getBigDecimal, getBoolean, getFieldNames, getInteger, getListInteger, getListLong, getListString, getLong, getString, getVaultModelData, set, setVaultModelData, toJSONObject, toJsonString, toMap, toMap
-
Field Details
-
HTTP_RESPONSE_WARNING
responseStatus = FAILURE- See Also:
-
HTTP_RESPONSE_FAILURE
responseStatus = FAILURE- See Also:
-
HTTP_RESPONSE_SUCCESS
responseStatus = SUCCESS- See Also:
-
HTTP_HEADER_CONTENT_DISPOSITION
Content-Disposition- See Also:
-
HTTP_HEADER_CONTENT_TYPE
Content-Type- See Also:
-
HTTP_HEADER_VAULT_BURST
X-VaultAPI-BurstLimit- See Also:
-
HTTP_HEADER_VAULT_BURST_REMAINING
X-VaultAPI-BurstLimitRemaining- See Also:
-
HTTP_HEADER_VAULT_EXECUTION_ID
X-VaultAPI-ExecutionId- See Also:
-
HTTP_HEADER_VAULT_RESPONSE_DELAY
X-VaultAPI-ResponseDelay- See Also:
-
HTTP_HEADER_VAULT_TRUNCATED_SESSION_ID
X-VaultAPI-TruncatedSessionId- See Also:
-
HTTP_HEADER_VAULT_USER_ID
X-VaultAPI-UserId- See Also:
-
HTTP_HEADER_VAULT_ID
X-VaultAPI-VaultId- See Also:
-
HTTP_HEADER_VAULT_SDK_COUNT
X-VaultAPI-SdkCount- See Also:
-
HTTP_HEADER_VAULT_SDK_CPU_TIME
X-VaultAPI-SdkCpuTime- See Also:
-
HTTP_HEADER_VAULT_SDK_ELAPSED_TIME
X-VaultAPI-SdkElapsedTime- See Also:
-
HTTP_HEADER_VAULT_SDK_GROSS_MEMORY
X-VaultAPI-SdkGrossMemory- See Also:
-
HTTP_HEADER_DOWNTIME_EXPECTED_DURATION_MINUTES
X-VaultAPI-DowntimeExpectedDurationMinutes- See Also:
-
HTTP_HEADER_STATUS
X-VaultAPI-Status- See Also:
-
HTTP_REFERENCE_ID
X-VaultAPI-Status- See Also:
-
-
Constructor Details
-
VaultResponse
public VaultResponse()
-
-
Method Details
-
isWarning
public boolean isWarning()Determine if the response status equals WARNING.- Returns:
- true if the response status equals WARNING
-
isFailure
public boolean isFailure()Determine if the response status equals FAILURE.- Returns:
- true if the response status equals FAILURE
-
isSuccessful
public boolean isSuccessful()Determine if the response status equals SUCCESS.- Returns:
- true if the response status equals SUCCESS
-
getResponseMessage
-
setResponseMessage
-
getResponseStatus
-
setResponseStatus
-
getResponse
Get the full response as a string.- Returns:
- The full response as a string
-
setResponse
-
getResponseJSON
public com.fasterxml.jackson.databind.JsonNode getResponseJSON()Get the full response as a JSON Object.- Returns:
- The full response as a JSON Object
-
getErrors
-
setErrors
-
hasErrors
public boolean hasErrors()Determine if the response has errors.- Returns:
- true if the response has errors
-
getWarnings
-
setWarnings
-
hasWarnings
public boolean hasWarnings()Determine if the response has warnings.- Returns:
- true if the response has warnings
-
getHeaders
-
setHeaders
-
getHttpHeaderContentDisposition
-
getHeaderContentType
-
getHeaderVaultBurstLimit
-
getHeaderVaultBurstLimitRemaining
-
getHeaderVaultExecutionId
-
getHeaderVaultId
-
getHeaderVaultResponseDelay
-
getHeaderVaultTruncatedSessionId
-
getHeaderVaultUserId
-
getHeaderVaultSdkCount
-
getHeaderVaultSdkCpuTime
-
getHeaderVaultSdkElapsedTime
-
getHeaderVaultSdkGrossMemory
-
getHeaderDowntimeExpectedDurationMinutes
-
getHeaderStatus
-
getHeaderReferenceId
-
getBinaryContent
public byte[] getBinaryContent()For requests returning binary content.- Returns:
- Byte array for the returned binary content
-
setBinaryContent
public void setBinaryContent(byte[] binaryContent) -
getOutputFilePath
Return the file path For requests creating files.- Returns:
- The file path of the created file
-
setOutputFilePath
-
getHeaderIgnoreCase
-