Package org.eclipse.jetty.server
Class HttpInput.ErrorContent
- java.lang.Object
-
- org.eclipse.jetty.server.HttpInput.Content
-
- org.eclipse.jetty.server.HttpInput.SpecialContent
-
- org.eclipse.jetty.server.HttpInput.ErrorContent
-
- Enclosing class:
- HttpInput
public static final class HttpInput.ErrorContent extends HttpInput.SpecialContent
Error special content.
-
-
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
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
-
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, failed, succeeded
-
-
-
-
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
-
-