Class HttpInput
java.lang.Object
java.io.InputStream
jakarta.servlet.ServletInputStream
org.eclipse.jetty.ee10.servlet.HttpInput
- All Implemented Interfaces:
 Closeable, AutoCloseable
public class HttpInput
extends jakarta.servlet.ServletInputStream
 While this class is-a Runnable, it should never be dispatched in it's own thread. It is a runnable only so that the calling thread can use Context.run(Runnable) to setup classloaders etc. 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintbooleanlonglongbooleanCheck if this HttpInput instance has content stored internally, without fetching/parsing anything from the underlying channel.booleanisAsync()booleanisError()booleanbooleanisReady()booleanintread()intread(byte[] b, int off, int len) intread(ByteBuffer buffer) voidvoidrecycle()voidreopen()voidsetReadListener(jakarta.servlet.ReadListener readListener) toString()Methods inherited from class jakarta.servlet.ServletInputStream
readAllBytes, readLine, readNBytes, readNBytesMethods inherited from class InputStream
close, mark, markSupported, nullInputStream, read, reset, skip, skipNBytes, transferTo 
- 
Constructor Details
- 
HttpInput
 
 - 
 - 
Method Details
- 
recycle
public void recycle() - 
reopen
public void reopen() - 
getContentConsumed
public long getContentConsumed() - 
getContentReceived
public long getContentReceived() - 
consumeAvailable
public boolean consumeAvailable() - 
isError
public boolean isError() - 
isAsync
public boolean isAsync() - 
getInvocationType
 - 
isFinished
public boolean isFinished()- Specified by:
 isFinishedin classjakarta.servlet.ServletInputStream
 - 
isReady
public boolean isReady()- Specified by:
 isReadyin classjakarta.servlet.ServletInputStream
 - 
setReadListener
public void setReadListener(jakarta.servlet.ReadListener readListener) - Specified by:
 setReadListenerin classjakarta.servlet.ServletInputStream
 - 
onContentProducible
public boolean onContentProducible() - 
read
- Specified by:
 readin classInputStream- Throws:
 IOException
 - 
read
- Overrides:
 readin classInputStream- Throws:
 IOException
 - 
read
- Overrides:
 readin classjakarta.servlet.ServletInputStream- Throws:
 IOException
 - 
hasContent
public boolean hasContent()Check if this HttpInput instance has content stored internally, without fetching/parsing anything from the underlying channel.- Returns:
 - true if the input contains content, false otherwise.
 
 - 
available
public int available()- Overrides:
 availablein classInputStream
 - 
readCallback
public void readCallback() - 
toString
 
 -