Class InboundMessageContext.EntityContent

java.lang.Object
java.io.InputStream
org.glassfish.jersey.message.internal.EntityInputStream
org.glassfish.jersey.message.internal.InboundMessageContext.EntityContent
All Implemented Interfaces:
Closeable, 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 Details

    • buffered

      private boolean buffered
  • Constructor Details

    • EntityContent

      EntityContent()
  • Method Details

    • setContent

      void setContent(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 AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class EntityInputStream
    • close

      void close(boolean force)