类 DefaultRequestManager
java.lang.Object
com.onlyoffice.manager.request.DefaultRequestManager
- 所有已实现的接口:
RequestManager
-
嵌套类概要
从接口继承的嵌套类/接口 com.onlyoffice.manager.request.RequestManager
RequestManager.Callback<Result> -
构造器概要
构造器构造器说明DefaultRequestManager(UrlManager urlManager, JwtManager jwtManager, SettingsManager settingsManager) -
方法概要
修饰符和类型方法说明<R> RexecuteGetRequest(String url, RequestManager.Callback<R> callback) Executes a GET request to the url.<R> RexecuteGetRequest(String url, HttpClientSettings httpClientSettings, RequestManager.Callback<R> callback) Executes a GET request to the url.<R> RexecutePostRequest(RequestedService requestedService, RequestEntity requestEntity, RequestManager.Callback<R> callback) Executes a POST request to the specified service.<R> RexecutePostRequest(RequestedService requestedService, RequestEntity requestEntity, HttpClientSettings httpClientSettings, RequestManager.Callback<R> callback) Executes a POST request to the url.<R> RexecutePostRequest(String url, RequestEntity requestEntity, Security security, HttpClientSettings httpClientSettings, RequestManager.Callback<R> callback) Executes a POST request to the url.voidsetJwtManager(JwtManager jwtManager) voidsetSettingsManager(SettingsManager settingsManager) voidsetUrlManager(UrlManager urlManager)
-
构造器详细资料
-
DefaultRequestManager
public DefaultRequestManager(UrlManager urlManager, JwtManager jwtManager, SettingsManager settingsManager)
-
-
方法详细资料
-
getUrlManager
-
setUrlManager
-
getJwtManager
-
setJwtManager
-
getSettingsManager
-
setSettingsManager
-
executeGetRequest
从接口复制的说明:RequestManagerExecutes a GET request to the url. The URL to the service is passed in the method. The authorization data is taken fromSettingsManager.- 指定者:
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 从接口复制的说明:RequestManagerExecutes 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 从接口复制的说明:RequestManagerExecutes a POST request to the specified service. The URL to the service is taken from the "requestedService" parameter. The authorization data is taken fromSettingsManager.- 指定者:
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 从接口复制的说明:RequestManagerExecutes 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 从接口复制的说明:RequestManagerExecutes 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.- 另请参阅:
-