javax.servlet
Interface WriteListener

All Superinterfaces:
EventListener

public interface WriteListener
extends EventListener

Callback notification mechanism that signals to the developer it's possible to write content without blocking.

Since:
Servlet 3.1

Method Summary
 void onError(Throwable t)
           Invoked when an error occurs processing the request asynchronously.
 void onWritePossible()
          When an instance of the WriteListener is registered with a ServletOutputStream, this method will be invoked by the container if and only if ServletOutputStream.canWrite() method has been called and has returned false.
 

Method Detail

onWritePossible

void onWritePossible()
When an instance of the WriteListener is registered with a ServletOutputStream, this method will be invoked by the container if and only if ServletOutputStream.canWrite() method has been called and has returned false.


onError

void onError(Throwable t)

Invoked when an error occurs processing the request asynchronously.



Copyright © 2012 GlassFish Community. All Rights Reserved.