Class RetrievedDocumentSet

  • All Implemented Interfaces:
    Serializable

    public class RetrievedDocumentSet
    extends Response
    implements Serializable
    Documents returned by the Retrieve Document Set transaction.

    Lists are pre-created and can therefore never be null.

    Author:
    Jens Riemschneider
    See Also:
    Serialized Form
    • Constructor Detail

      • RetrievedDocumentSet

        public RetrievedDocumentSet()
        Constructs the response.
      • RetrievedDocumentSet

        public RetrievedDocumentSet​(Status status)
        Constructs the response.
        Parameters:
        status - the status of the request execution.
      • RetrievedDocumentSet

        public RetrievedDocumentSet​(Status status,
                                    List<RetrievedDocument> documents)
        Constructs the response.
        Parameters:
        status - the status of the request execution.
        documents - the documents to add to this set.
      • RetrievedDocumentSet

        public RetrievedDocumentSet​(Throwable throwable,
                                    ErrorCode defaultMetaDataError,
                                    ErrorCode defaultError,
                                    String location)
        Constructs an error response object with the data from an exception.
        Parameters:
        throwable - the exception that occurred.
        defaultMetaDataError - the default error code for XDSMetaDataException.
        defaultError - the default error code for any other exception.
        location - error location.