Class DelegatingPayload

    • Constructor Detail

      • DelegatingPayload

        public DelegatingPayload​(Payload delegate)
    • Method Detail

      • getInput

        public InputStream getInput()
        Creates a new InputStream object of the payload.
        Specified by:
        getInput in interface Payload
      • isRepeatable

        public boolean isRepeatable()
        Tells if the payload is capable of producing its data more than once.
        Specified by:
        isRepeatable in interface Payload
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDelegate

        public Payload getDelegate()
      • release

        public void release()
        Description copied from interface: Payload
        release resources used by this entity. This should be called when data is discarded.
        Specified by:
        release in interface Payload
      • setSensitive

        public void setSensitive​(boolean isSensitive)
        Description copied from interface: Payload
        Sets whether the payload contains sensitive information. This is used when trying to decide whether to print out the payload information or not in logs
        Specified by:
        setSensitive in interface Payload
      • isSensitive

        public boolean isSensitive()
        Description copied from interface: Payload
        Returns whether the payload contains sensitive information. This is used when trying to decide whether to print out the payload information or not in logs
        Specified by:
        isSensitive in interface Payload