com.google.gwt.gadgets.client.osapi
Class OsapiRequest<T extends com.google.gwt.core.client.JavaScriptObject>

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.gadgets.client.osapi.OsapiRequest<T>
Type Parameters:
T - The type of object returned by the request.

public abstract class OsapiRequest<T extends com.google.gwt.core.client.JavaScriptObject>
extends com.google.gwt.core.client.JavaScriptObject

A class representing OpenSocial request.


Constructor Summary
protected OsapiRequest()
          Required by JavaScriptObject policy.
 
Method Summary
 void execute(Callback<T> callback)
          Executes this requests.
protected  void nativeExecute(com.google.gwt.core.client.JavaScriptObject callback)
          Invokes underlying JavaScript API to execute this request with provided Callback instance.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OsapiRequest

protected OsapiRequest()
Required by JavaScriptObject policy.

Method Detail

execute

public final void execute(Callback<T> callback)
Executes this requests.

Parameters:
callback - Callback to be invoked when request finishes.

nativeExecute

protected final void nativeExecute(com.google.gwt.core.client.JavaScriptObject callback)
Invokes underlying JavaScript API to execute this request with provided Callback instance.

Parameters:
callback - The Callback instance to use for this request.