Package org.eclipse.jetty.server
Class HttpInput.WrappingContent
java.lang.Object
org.eclipse.jetty.server.HttpInput.Content
org.eclipse.jetty.server.HttpInput.WrappingContent
- Enclosing class:
- HttpInput
Simple non-special content wrapper allow overriding the EOF flag.
-
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, Invocable.ReadyTask, Invocable.Task
-
Field Summary
Fields inherited from class org.eclipse.jetty.server.HttpInput.Content
_content
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Callback invoked when the operation fails.boolean
isEof()
Check if EOF was reached.void
Callback invoked when the operation completes.Methods inherited from class org.eclipse.jetty.server.HttpInput.Content
get, getByteBuffer, getError, hasContent, isEmpty, isSpecial, remaining, skip, 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
completeWith
-
Constructor Details
-
WrappingContent
-
-
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 classHttpInput.Content
- Returns:
- true if EOF was reached, false otherwise.
-
succeeded
public void succeeded()Description copied from interface:Callback
Callback invoked when the operation completes.
- See Also:
-
failed
Description copied from interface:Callback
Callback invoked when the operation fails.
- Parameters:
x
- the reason for the operation failure
-
getInvocationType
- Specified by:
getInvocationType
in interfaceInvocable
- Overrides:
getInvocationType
in classHttpInput.Content
- Returns:
- The InvocationType of this object
-