Class Part<C extends Content>

    • Field Detail

      • content

        protected C extends Content content
      • logIndent

        protected String logIndent
      • inChangeSet

        protected boolean inChangeSet
      • batchVersion

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

      • Part

        public Part​(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion,
                    CoreSettings settings,
                    boolean inChangeSet,
                    String logIndent)
        Creates a new Part.
        Parameters:
        batchVersion - Batch request API version
        settings - The settings.
        inChangeSet - flag indicating the Part is part of a ChangeSet, and thus if the part itself can be a ChangeSet.
        logIndent -
    • Method Detail

      • getHeader

        public String getHeader​(String name)
        Get the value of the header with the given name.
        Parameters:
        name - The name of the header to get.
        Returns:
        The value of the header with the given name.
      • getContent

        public C getContent()
        Get the Content of this Part.
        Returns:
        the Content of this Part.
      • setContent

        public void setContent​(C content)
        Set the Content of this Part.
        Parameters:
        content - the Content of this Part.
      • setInChangeSet

        public void setInChangeSet​(boolean inChangeSet)
      • setLogIndent

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