Class ApiDocProxy

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

public class ApiDocProxy extends Object
The Class ApiDocProxy.
  • 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 url
      jsonData - the json data
      contextType - the context type
      method - the method
      handler - 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 url
      jsonData - the json data
      method - the method
      handler - 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 target
      handler - the handler