org.restlet.engine.http.io
Interface Notifiable


public interface Notifiable

Marker class for objects such as engine.http.connector.Connection that can be notified of stream events.

Author:
Jerome Louvel

Method Summary
 void onEndReached()
          To be called when the end of the stream is reached.
 void onError()
          To be called when there is an error when handling the stream.
 

Method Detail

onEndReached

void onEndReached()
To be called when the end of the stream is reached. By default, it updates the state of the connection ( engine.http.connector.Connection ) .


onError

void onError()
To be called when there is an error when handling the stream. By default it calls onEndReached() and set the state of the connection to engine.http.connector.ConnectionState in order to release this stream.



Copyright © 2005-2012 Restlet S.A.S..