org.glassfish.grizzly.http.server.io
Interface ReadHandler


public interface ReadHandler

This class represents a call-back mechanism that will notify implementations as HTTP request data becomes available to read without blocking.

Since:
2.0

Method Summary
 void onAllDataRead()
           Invoked when all data for the current request has been read.
 void onDataAvailable()
           Invoked when data is available to be read without blocking.
 void onError(Throwable t)
           Invoked when an error occurs processing the request asynchronously.
 

Method Detail

onDataAvailable

void onDataAvailable()
                     throws Exception

Invoked when data is available to be read without blocking.

Throws:
Exception, - Exception might be thrown by the custom handler code. This exception will be delegated for processing to onError(java.lang.Throwable).
Exception

onError

void onError(Throwable t)

Invoked when an error occurs processing the request asynchronously.


onAllDataRead

void onAllDataRead()
                   throws Exception

Invoked when all data for the current request has been read.

Throws:
Exception, - Exception might be thrown by the custom handler code. This exception will be delegated for processing to onError(java.lang.Throwable).
Exception


Copyright © 2011 Oracle Corpration. All Rights Reserved.