Package org.eclipse.jetty.server
Class HttpInput.Content
- java.lang.Object
-
- org.eclipse.jetty.server.HttpInput.Content
-
- Direct Known Subclasses:
HttpInput.SentinelContent
- Enclosing class:
- HttpInput
public static class HttpInput.Content extends java.lang.Object implements Callback
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.ByteBuffer
_content
-
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()
Invocable.InvocationType
getInvocationType()
boolean
hasContent()
boolean
isEmpty()
int
remaining()
int
skip(int length)
java.lang.String
toString()
-
-
-
Method Detail
-
getByteBuffer
public java.nio.ByteBuffer getByteBuffer()
-
getInvocationType
public Invocable.InvocationType getInvocationType()
- Specified by:
getInvocationType
in interfaceInvocable
- Returns:
- The InvocationType of this object
-
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 classjava.lang.Object
-
-