接口 RequestManager

所有已知实现类:
DefaultRequestManager

public interface RequestManager
  • 方法详细资料

    • executeGetRequest

      <R> R executeGetRequest(String url, RequestManager.Callback<R> callback) throws Exception
      Executes a GET request to the url. The URL to the service is passed in the method. The authorization data is taken from SettingsManager.
      类型参数:
      R - The result type.
      参数:
      url - The URL address to the document server.
      callback - The callback method.
      返回:
      The result of the execution callback method.
      抛出:
      Exception - If the processing fails unexpectedly.
    • executeGetRequest

      <R> R executeGetRequest(String url, HttpClientSettings httpClientSettings, RequestManager.Callback<R> callback) throws Exception
      Executes a GET request to the url. The URL to the service is passed in the method. The authorization data is passed in the method as the "security" parameter.
      类型参数:
      R - The result type.
      参数:
      url - The URL address to the document server.
      httpClientSettings - The settings for http client.
      callback - The callback method.
      返回:
      The result of the execution callback method.
      抛出:
      Exception - If the processing fails unexpectedly.
    • executePostRequest

      <R> R executePostRequest(RequestedService requestedService, RequestEntity requestEntity, RequestManager.Callback<R> callback) throws Exception
      Executes a POST request to the specified service. The URL to the service is taken from the "requestedService" parameter. The authorization data is taken from SettingsManager.
      类型参数:
      R - The result type.
      参数:
      requestedService - The requested service.
      requestEntity - The requested entity.
      callback - The callback method.
      返回:
      The result of the execution callback method.
      抛出:
      Exception - If the processing fails unexpectedly.
      另请参阅:
    • executePostRequest

      <R> R executePostRequest(RequestedService requestedService, RequestEntity requestEntity, HttpClientSettings httpClientSettings, RequestManager.Callback<R> callback) throws Exception
      Executes a POST request to the url. The URL to the service is passed in the method. The authorization data is passed in the method as the "security" parameter.
      类型参数:
      R - The result type.
      参数:
      requestedService - The requested service.
      requestEntity - The requested entity.
      httpClientSettings - The settings for http client.
      callback - The callback method.
      返回:
      The result of the execution callback method.
      抛出:
      Exception - If the processing fails unexpectedly.
      另请参阅:
    • executePostRequest

      <R> R executePostRequest(String url, RequestEntity requestEntity, Security security, HttpClientSettings httpClientSettings, RequestManager.Callback<R> callback) throws Exception
      Executes a POST request to the url. The URL to the service is passed in the method. The authorization data is passed in the method as the "security" parameter.
      类型参数:
      R - The result type.
      参数:
      url - The URL address to the document server.
      requestEntity - The requested entity.
      security - The security parameters.
      httpClientSettings - The settings for http client.
      callback - The callback method.
      返回:
      The result of the execution callback method.
      抛出:
      Exception - If the processing fails unexpectedly.
      另请参阅: