Package org.eclipse.jetty.server
Class HttpInput.Content
- java.lang.Object
-
- org.eclipse.jetty.server.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 Object implements org.eclipse.jetty.util.Callback
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBuffer_content
-
Constructor Summary
Constructors Constructor Description Content(ByteBuffer content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intget(byte[] buffer, int offset, int length)ByteBuffergetByteBuffer()org.eclipse.jetty.util.thread.Invocable.InvocationTypegetInvocationType()booleanhasContent()booleanisEmpty()intremaining()intskip(int length)StringtoString()
-
-
-
Field Detail
-
_content
protected final ByteBuffer _content
-
-
Constructor Detail
-
Content
public Content(ByteBuffer content)
-
-
Method Detail
-
getByteBuffer
public ByteBuffer getByteBuffer()
-
getInvocationType
public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()
- Specified by:
getInvocationTypein interfaceorg.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()
-
-