Class HttpInput.WrappingContent

java.lang.Object
org.eclipse.jetty.ee8.nested.HttpInput.Content
org.eclipse.jetty.ee8.nested.HttpInput.WrappingContent
All Implemented Interfaces:
org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
Enclosing class:
HttpInput

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

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback

    org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.Nested

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable

    org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task
  • Field Summary

    Fields inherited from class HttpInput.Content

    _content

    Fields inherited from interface org.eclipse.jetty.util.Callback

    NOOP

    Fields inherited from interface org.eclipse.jetty.util.thread.Invocable

    __nonBlocking
  • Constructor Summary

    Constructors
    Constructor
    Description
    WrappingContent(HttpInput.Content delegate, boolean eof)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.eclipse.jetty.util.thread.Invocable.InvocationType
     
    boolean
    Check if EOF was reached.
    void
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.Callback

    completeWith
  • 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()
    • failed

      public void failed(Throwable x)
    • getInvocationType

      public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()
      Specified by:
      getInvocationType in interface org.eclipse.jetty.util.thread.Invocable
      Overrides:
      getInvocationType in class HttpInput.Content