|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.data.client.loader.HttpProxy<C>
C - the type of data used to configure the load from the proxypublic class HttpProxy<C>
A DataProxy that retrieves data using a RequestBuilder
instance.
LoadConfig or
ModelData, all properties and property values will be sent as
request parameters in the load request.
RequestBuilder,
ScriptTagProxy| Constructor Summary | |
|---|---|
HttpProxy(RequestBuilder builder)
Creates a new HttpProxy. |
|
| Method Summary | |
|---|---|
DataWriter<C,java.lang.String> |
getWriter()
Returns the data writer for this proxy. |
void |
load(C loadConfig,
Callback<java.lang.String,java.lang.Throwable> callback)
Data should be retrieved using the specified load config. |
void |
setWriter(DataWriter<C,java.lang.String> writer)
Sets the data writer for this proxy. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpProxy(RequestBuilder builder)
builder - the request builder. The URL must be set to the URL of the
service. For requests that use the HTTP GET method, the URL should
be set to the base part of the URL. It will be updated
automatically to include the encoded request.| Method Detail |
|---|
public DataWriter<C,java.lang.String> getWriter()
public void load(C loadConfig,
Callback<java.lang.String,java.lang.Throwable> callback)
DataProxyDataReader can be used to "process" the raw data.
load in interface DataProxy<C,java.lang.String>loadConfig - the load config object to be passed to servercallback - the data callbackpublic void setWriter(DataWriter<C,java.lang.String> writer)
writer - the data writer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||