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 intget(byte[] buffer, int offset, int length)java.nio.ByteBuffergetByteBuffer()Invocable.InvocationTypegetInvocationType()booleanhasContent()booleanisEmpty()intremaining()intskip(int length)java.lang.StringtoString()
-
-
-
Method Detail
-
getByteBuffer
public java.nio.ByteBuffer getByteBuffer()
-
getInvocationType
public Invocable.InvocationType getInvocationType()
- Specified by:
getInvocationTypein 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:
toStringin classjava.lang.Object
-
-