com.extjs.gxt.ui.client.data
Class HttpProxy<D>

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.HttpProxy<D>
Type Parameters:
D - the data type being returned by the proxy
All Implemented Interfaces:
DataProxy<D>

public class HttpProxy<D>
extends java.lang.Object
implements DataProxy<D>

A concrete DataProxy that retrieves data using a RequestBulder instances.

When using a load config object that implements LoadConfig or ModelData, all properties and property values will be sent as request parameters in the load request.

See Also:
RequestBuilder, ScriptTagProxy

Constructor Summary
HttpProxy(com.google.gwt.http.client.RequestBuilder builder)
          Creates a new HttpProxy.
 
Method Summary
 void load(DataReader<D> reader, java.lang.Object loadConfig, com.google.gwt.user.client.rpc.AsyncCallback<D> callback)
          Data should be retrieved using the specified load config.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpProxy

public HttpProxy(com.google.gwt.http.client.RequestBuilder builder)
Creates a new HttpProxy.

Parameters:
builder - the request builder
Method Detail

load

public void load(DataReader<D> reader,
                 java.lang.Object loadConfig,
                 com.google.gwt.user.client.rpc.AsyncCallback<D> callback)
Description copied from interface: DataProxy
Data should be retrieved using the specified load config.

Specified by:
load in interface DataProxy<D>
Parameters:
reader - the reader instance
loadConfig - the config
callback - the data callback