Package cn.mapway.document.ui.client.rpc
Class Github
java.lang.Object
cn.mapway.document.ui.client.rpc.Github
Github client for GWT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends com.google.gwt.core.client.JavaScriptObject>
void向服务器请求接口调用.voidlogin(String user, String pwd, IOnData<GithubUser> onData) <T extends com.google.gwt.core.client.JavaScriptObject>
void向服务器请求接口调用.
-
Constructor Details
-
Github
public Github()
-
-
Method Details
-
post
public <T extends com.google.gwt.core.client.JavaScriptObject> void post(String url, String jsonData, Map<String, String> headers, IOnData<T> handler) throws com.google.gwt.http.client.RequestException向服务器请求接口调用.- Type Parameters:
T- Template- Parameters:
url- urljsonData- json dataheaders- headershandler- handler- Throws:
com.google.gwt.http.client.RequestException- the throes
-
get
public <T extends com.google.gwt.core.client.JavaScriptObject> void get(String url, Map<String, String> headers, IOnData<T> handler) throws com.google.gwt.http.client.RequestException向服务器请求接口调用.- Type Parameters:
T-- Parameters:
url-headers-handler-- Throws:
com.google.gwt.http.client.RequestException- the throes
-
login
-