Package cn.mapway.document.ui.client.rpc
Class ApiDocProxy
java.lang.Object
cn.mapway.document.ui.client.rpc.ApiDocProxy
The Class ApiDocProxy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends com.google.gwt.core.client.JavaScriptObject>
void向服务器请求接口调用.static <T extends com.google.gwt.core.client.JavaScriptObject>
voidFetch data.static voidfetchString(String url, String jsonData, String contextType, String method, IOnData<String> handler) 向服务器请求接口调用.
-
Constructor Details
-
ApiDocProxy
public ApiDocProxy()
-
-
Method Details
-
fetchString
public static void fetchString(String url, String jsonData, String contextType, String method, IOnData<String> handler) throws com.google.gwt.http.client.RequestException 向服务器请求接口调用.- Parameters:
url- the urljsonData- the json datacontextType- the context typemethod- the methodhandler- the handler- Throws:
com.google.gwt.http.client.RequestException- the request exception
-
fetch
public static <T extends com.google.gwt.core.client.JavaScriptObject> void fetch(String url, String jsonData, String method, IOnData<T> handler) throws com.google.gwt.http.client.RequestException 向服务器请求接口调用.- Type Parameters:
T- the generic type- Parameters:
url- the urljsonData- the json datamethod- the methodhandler- the handler- Throws:
com.google.gwt.http.client.RequestException- the request exception
-
fetchData
public static <T extends com.google.gwt.core.client.JavaScriptObject> void fetchData(String target, IOnData<T> handler) Fetch data.- Type Parameters:
T- the generic type- Parameters:
target- the targethandler- the handler
-