Package javax.servlet
Interface ReadListener
- 
- All Superinterfaces:
- java.util.EventListener
 
 public interface ReadListener extends java.util.EventListenerReceives notification of read events when using non-blocking IO.- Since:
- Servlet 3.1
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonAllDataRead()Invoked when the request body has been fully read.voidonDataAvailable()Invoked when data is available to read.voidonError(java.lang.Throwable throwable)Invoked if an error occurs while reading the request body.
 
- 
- 
- 
Method Detail- 
onDataAvailablevoid onDataAvailable() throws java.io.IOExceptionInvoked 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 toServletInputStream.isReady()has returned false and data has subsequently become available to read.- Throws:
- java.io.IOException- id an I/O error occurs while processing the event
 
 - 
onAllDataReadvoid onAllDataRead() throws java.io.IOExceptionInvoked when the request body has been fully read.- Throws:
- java.io.IOException- id an I/O error occurs while processing the event
 
 - 
onErrorvoid onError(java.lang.Throwable throwable) Invoked if an error occurs while reading the request body.- Parameters:
- throwable- The exception that occurred
 
 
- 
 
-