Class Github

java.lang.Object
cn.mapway.document.ui.client.rpc.Github

public class Github extends Object
Github client for GWT
  • 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 - url
      jsonData - json data
      headers - headers
      handler - 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

      public void login(String user, String pwd, IOnData<GithubUser> onData)