Class Batch<C extends Content>

  • Type Parameters:
    C - The type of content.
    All Implemented Interfaces:
    Content
    Direct Known Subclasses:
    JsonBatch, MixedContent

    public abstract class Batch<C extends Content>
    extends Object
    implements Content
    Batch of requests or responses.
    • Field Detail

      • logIndent

        protected String logIndent
      • parseFailed

        protected boolean parseFailed
        Flag indicating there is a problem with the syntax of the content. If this is a changeSet, then the entire changeSet will be discarded.
      • isChangeSet

        protected final boolean isChangeSet
      • batchVersion

        protected final de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion
    • Constructor Detail

      • Batch

        protected Batch​(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion,
                        CoreSettings settings,
                        boolean isChangeSet)
    • Method Detail

      • isParseFailed

        public boolean isParseFailed()
        Description copied from interface: Content
        Flag indicating there were errors parsing the content.
        Specified by:
        isParseFailed in interface Content
        Returns:
        true if there were parse errors.
      • getErrors

        public List<String> getErrors()
        Description copied from interface: Content
        Get the list of error messages generating during parsing.
        Specified by:
        getErrors in interface Content
        Returns:
        A list of error messages generating during parsing.
      • setLogIndent

        public void setLogIndent​(String logIndent)
        Description copied from interface: Content
        Sets the indentation of log messages. Since Content can be nested, this makes debug output better readable.
        Specified by:
        setLogIndent in interface Content
        Parameters:
        logIndent - the indentation of log messages.