- java.lang.Object
-
- org.eclipse.jetty.server.HttpInput.Content
-
- org.eclipse.jetty.server.HttpInput.SpecialContent
-
- org.eclipse.jetty.server.HttpInput.ErrorContent
-
- All Implemented Interfaces:
org.eclipse.jetty.util.Callback
,org.eclipse.jetty.util.thread.Invocable
- Enclosing class:
- HttpInput
public static final class HttpInput.ErrorContent extends HttpInput.SpecialContent
Error special content.
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.server.HttpInput.Content
_content
-
-
Constructor Summary
Constructors Constructor Description ErrorContent(java.lang.Throwable error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getError()
Get the reported error.java.lang.String
toString()
-
Methods inherited from class org.eclipse.jetty.server.HttpInput.SpecialContent
get, getByteBuffer, hasContent, isEmpty, isSpecial, remaining, skip
-
Methods inherited from class org.eclipse.jetty.server.HttpInput.Content
getInvocationType, isEof
-
-
-
-
Method Detail
-
getError
public java.lang.Throwable getError()
Description copied from class:HttpInput.Content
Get the reported error. Only special contents can have an error.- Overrides:
getError
in classHttpInput.Content
- Returns:
- the error or null if there is none.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classHttpInput.Content
-
-