Class InboundMessageContext.EntityContent

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    InboundMessageContext

    private static class InboundMessageContext.EntityContent
    extends EntityInputStream
    Input stream and its state. State is represented by the Type enum and is used to control the execution of interceptors.
    • Field Detail

      • buffered

        private boolean buffered
    • Constructor Detail

      • EntityContent

        EntityContent()
    • Method Detail

      • setContent

        void setContent​(java.io.InputStream content,
                        boolean buffered)
      • hasContent

        boolean hasContent()
      • isBuffered

        boolean isBuffered()
      • close

        public void close()
        Description copied from class: EntityInputStream

        The method is customized to not throw an IOException if the close operation fails. Instead, a warning message is logged.

        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class EntityInputStream
      • close

        void close​(boolean force)