类 DefaultRequestManager

java.lang.Object
com.onlyoffice.manager.request.DefaultRequestManager
所有已实现的接口:
RequestManager

public class DefaultRequestManager extends Object implements RequestManager
  • 构造器详细资料

  • 方法详细资料

    • getUrlManager

      public UrlManager getUrlManager()
    • setUrlManager

      public void setUrlManager(UrlManager urlManager)
    • getJwtManager

      public JwtManager getJwtManager()
    • setJwtManager

      public void setJwtManager(JwtManager jwtManager)
    • getSettingsManager

      public SettingsManager getSettingsManager()
    • setSettingsManager

      public void setSettingsManager(SettingsManager settingsManager)
    • executeGetRequest

      public <R> R executeGetRequest(String url, RequestManager.Callback<R> callback) throws Exception
      从接口复制的说明: RequestManager
      Executes a GET request to the url. The URL to the service is passed in the method. The authorization data is taken from SettingsManager.
      指定者:
      executeGetRequest 在接口中 RequestManager
      类型参数:
      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

      public <R> R executeGetRequest(String url, HttpClientSettings httpClientSettings, RequestManager.Callback<R> callback) throws Exception
      从接口复制的说明: RequestManager
      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.
      指定者:
      executeGetRequest 在接口中 RequestManager
      类型参数:
      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

      public <R> R executePostRequest(RequestedService requestedService, RequestEntity requestEntity, RequestManager.Callback<R> callback) throws Exception
      从接口复制的说明: RequestManager
      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.
      指定者:
      executePostRequest 在接口中 RequestManager
      类型参数:
      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

      public <R> R executePostRequest(RequestedService requestedService, RequestEntity requestEntity, HttpClientSettings httpClientSettings, RequestManager.Callback<R> callback) throws Exception
      从接口复制的说明: RequestManager
      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.
      指定者:
      executePostRequest 在接口中 RequestManager
      类型参数:
      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

      public <R> R executePostRequest(String url, RequestEntity requestEntity, Security security, HttpClientSettings httpClientSettings, RequestManager.Callback<R> callback) throws Exception
      从接口复制的说明: RequestManager
      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.
      指定者:
      executePostRequest 在接口中 RequestManager
      类型参数:
      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.
      另请参阅: