- java.lang.Object
-
- org.eclipse.jetty.server.HttpInput.Content
-
- org.eclipse.jetty.server.HttpInput.WrappingContent
-
- All Implemented Interfaces:
org.eclipse.jetty.util.Callback,org.eclipse.jetty.util.thread.Invocable
- Enclosing class:
- HttpInput
public static class HttpInput.WrappingContent extends HttpInput.Content
Simple non-special content wrapper allow overriding the EOF flag.
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.server.HttpInput.Content
_content
-
-
Constructor Summary
Constructors Constructor Description WrappingContent(HttpInput.Content delegate, boolean eof)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfailed(java.lang.Throwable x)org.eclipse.jetty.util.thread.Invocable.InvocationTypegetInvocationType()booleanisEof()Check if EOF was reached.voidsucceeded()-
Methods inherited from class org.eclipse.jetty.server.HttpInput.Content
get, getByteBuffer, getError, hasContent, isEmpty, isSpecial, remaining, skip, toString
-
-
-
-
Constructor Detail
-
WrappingContent
public WrappingContent(HttpInput.Content delegate, boolean eof)
-
-
Method Detail
-
isEof
public boolean isEof()
Description copied from class:HttpInput.ContentCheck 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:
isEofin classHttpInput.Content- Returns:
- true if EOF was reached, false otherwise.
-
succeeded
public void succeeded()
-
failed
public void failed(java.lang.Throwable x)
-
getInvocationType
public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()
- Specified by:
getInvocationTypein interfaceorg.eclipse.jetty.util.thread.Invocable- Overrides:
getInvocationTypein classHttpInput.Content
-
-