Top Description Methods
jakarta.servlet

public Interface ReadListener

extends EventListener
Imports
java.io.IOException

Receives notification of read events when using non-blocking IO.
Since
Servlet 3.1

Method Summary

Modifier and TypeMethod and Description
public void
onAllDataRead()

Invoked when the request body has been fully read.

public void
onDataAvailable()

Invoked when data is available to read.

public void
onError(Throwable
The exception that occurred
throwable
)

Invoked if an error occurs while reading the request body.

Method Detail

onAllDataReadback to summary
public void onAllDataRead() throws IOException

Invoked when the request body has been fully read.

Exceptions
IOException:
id an I/O error occurs while processing the event
onDataAvailableback to summary
public void onDataAvailable() throws IOException

Invoked when data is available to read. The container will invoke this method the first time for a request as soon as there is data to read. Subsequent invocations will only occur if a call to ServletInputStream#isReady() has returned false and data has subsequently become available to read.

Exceptions
IOException:
id an I/O error occurs while processing the event
onErrorback to summary
public void onError(Throwable throwable)

Invoked if an error occurs while reading the request body.

Parameters
throwable:Throwable

The exception that occurred