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

Field Summary
protected  com.google.gwt.http.client.RequestBuilder builder
           
protected  java.lang.String initUrl
           
 
Constructor Summary
HttpProxy(com.google.gwt.http.client.RequestBuilder builder)
          Creates a new HttpProxy.
 
Method Summary
protected  java.lang.String generateUrl(java.lang.Object loadConfig)
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

builder

protected com.google.gwt.http.client.RequestBuilder builder

initUrl

protected java.lang.String initUrl
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

generateUrl

protected java.lang.String generateUrl(java.lang.Object loadConfig)