接口 UrlManager
- 所有已知实现类:
DefaultUrlManager
public interface UrlManager
-
方法概要
修饰符和类型方法说明getCallbackUrl(String bucket, String fileId) Returns the URL to the callback handler.getCreateUrl(String bucket, String fileId) Returns the URL to create a new file with the ID specified in the request.Returns the URL to the Document Server API.Returns the URL to the Document Server Preloader API.Returns the URL to the Document Server.getFileUrl(String bucket, String fileId) Returns the URL to download a file with the ID specified in the request.getGobackUrl(String bucket, String fileId) Returns the URL to the location folder of a file with the ID specified in the request.Returns the inner URL to the Document Server.getServiceUrl(RequestedService requestedService) Returns the URL to the service using the requested service properties specified in the request.getTestConvertUrl(String url) Returns the URL to the test file.Replaces the internal URL from the Document Server with the Document Server URL.Replaces the URL to the Document Server with the internal one.sanitizeUrl(String url) Removes the trailing slash from the URL if it exists.
-
方法详细资料
-
getDocumentServerUrl
String getDocumentServerUrl()Returns the URL to the Document Server.- 返回:
- The URL to the Document Server.
-
getInnerDocumentServerUrl
String getInnerDocumentServerUrl()Returns the inner URL to the Document Server.- 返回:
- The inner URL to the Document Server.
-
getDocumentServerApiUrl
String getDocumentServerApiUrl()Returns the URL to the Document Server API.- 返回:
- The URL to the Document Server API.
-
getDocumentServerPreloaderApiUrl
String getDocumentServerPreloaderApiUrl()Returns the URL to the Document Server Preloader API.- 返回:
- The URL to the Document Server Preloader API.
-
getFileUrl
Returns the URL to download a file with the ID specified in the request.- 参数:
bucket- The file bucket.fileId- The file ID.- 返回:
- The URL to download a file.
-
getCallbackUrl
Returns the URL to the callback handler.- 参数:
bucket- The file bucket.fileId- The file ID.- 返回:
- The URL to the callback handler.
-
getGobackUrl
Returns the URL to the location folder of a file with the ID specified in the request.- 参数:
bucket- The file bucket.fileId- The file ID.- 返回:
- The URL to the file location folder.
-
getCreateUrl
Returns the URL to create a new file with the ID specified in the request.- 参数:
bucket- The file bucket.fileId- The file ID.- 返回:
- The URL to create a new file.
-
getServiceUrl
Returns the URL to the service using the requested service properties specified in the request.- 参数:
requestedService- The requested service.- 返回:
- The URL to ONLYOFFICE service.
-
sanitizeUrl
Removes the trailing slash from the URL if it exists.- 参数:
url- The URL to the Document Server.- 返回:
- The URL without the trailing slash.
-
replaceToDocumentServerUrl
Replaces the internal URL from the Document Server with the Document Server URL.- 参数:
url- The internal URL from the Document Server.- 返回:
- The URL start with Document Server URL.
-
replaceToInnerDocumentServerUrl
Replaces the URL to the Document Server with the internal one.- 参数:
url- The URL to the Document Server.- 返回:
- The internal URL.
-
getTestConvertUrl
Returns the URL to the test file.- 参数:
url- The URL to the integration Product.- 返回:
- The URL to the test file.
-