Class HttpInput.Content

  • All Implemented Interfaces:
    org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
    Direct Known Subclasses:
    HttpInput.SentinelContent
    Enclosing class:
    HttpInput

    public static class HttpInput.Content
    extends java.lang.Object
    implements org.eclipse.jetty.util.Callback
    • 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.InvocationType
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.ByteBuffer _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
      Content​(java.nio.ByteBuffer content)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int get​(byte[] buffer, int offset, int length)  
      java.nio.ByteBuffer getByteBuffer()  
      org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()  
      boolean hasContent()  
      boolean isEmpty()  
      int remaining()  
      int skip​(int length)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jetty.util.Callback

        failed, succeeded
    • Field Detail

      • _content

        protected final java.nio.ByteBuffer _content
    • Constructor Detail

      • Content

        public Content​(java.nio.ByteBuffer content)
    • Method Detail

      • getByteBuffer

        public java.nio.ByteBuffer getByteBuffer()
      • getInvocationType

        public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()
        Specified by:
        getInvocationType in interface org.eclipse.jetty.util.thread.Invocable
      • get

        public int get​(byte[] buffer,
                       int offset,
                       int length)
      • skip

        public int skip​(int length)
      • hasContent

        public boolean hasContent()
      • remaining

        public int remaining()
      • isEmpty

        public boolean isEmpty()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object