org.restlet.gwt
Class Callback

java.lang.Object
  extended by org.restlet.gwt.Callback

public abstract class Callback
extends java.lang.Object

Callback associated to the uniform interface. This abstract class is typically subclassed and instantiated by the user applications. It contains a single method called by the Restlet-GWT library when a request has been processed.

Author:
Jerome Louvel

Constructor Summary
Callback()
           
 
Method Summary
abstract  void onEvent(Request request, Response response)
          This method is called in all cases, even if a communication error occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Callback

public Callback()
Method Detail

onEvent

public abstract void onEvent(Request request,
                             Response response)
This method is called in all cases, even if a communication error occurs. When it is invoked the Response instante will have been updated.

Parameters:
request - The request processed.
response - The updated response.


Copyright © 2005-2008 Noelios Technologies.