Class HttpInput.WrappingContent

java.lang.Object
org.eclipse.jetty.server.HttpInput.Content
org.eclipse.jetty.server.HttpInput.WrappingContent
All Implemented Interfaces:
Callback, Invocable
Enclosing class:
HttpInput

public static class HttpInput.WrappingContent extends HttpInput.Content
Simple non-special content wrapper allow overriding the EOF flag.
  • Constructor Details

  • Method Details

    • isEof

      public boolean isEof()
      Description copied from class: HttpInput.Content
      Check if EOF was reached. Both special and non-special content can have this flag set to true but in the case of non-special content, this can be interpreted as a hint as it is always going to be followed by another content that is both special and EOF.
      Overrides:
      isEof in class HttpInput.Content
      Returns:
      true if EOF was reached, false otherwise.
    • succeeded

      public void succeeded()
      Description copied from interface: Callback

      Callback invoked when the operation completes.

      See Also:
    • failed

      public void failed(Throwable x)
      Description copied from interface: Callback

      Callback invoked when the operation fails.

      Parameters:
      x - the reason for the operation failure
    • getInvocationType

      public Invocable.InvocationType getInvocationType()
      Specified by:
      getInvocationType in interface Invocable
      Overrides:
      getInvocationType in class HttpInput.Content
      Returns:
      The InvocationType of this object