public class DefaultUrlManager extends Object implements UrlManager
| Modifier and Type | Field and Description |
|---|---|
private SettingsManager |
settingsManager
|
| Constructor and Description |
|---|
DefaultUrlManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCallbackUrl(String fileId)
Returns the URL to the callback handler.
|
String |
getCreateUrl(String fileId)
Returns the URL to create a new file with the ID specified in the request.
|
String |
getDocumentServerApiUrl()
Returns the URL to the Document Server API.
|
String |
getDocumentServerApiUrl(String shardKey)
Returns the URL to the Document Server API with shardKey.
|
String |
getDocumentServerPreloaderApiUrl()
Returns the URL to the Document Server Preloader API.
|
String |
getDocumentServerUrl()
Returns the URL to the Document Server.
|
String |
getFileUrl(String fileId)
Returns the URL to download a file with the ID specified in the request.
|
String |
getGobackUrl(String fileId)
Returns the URL to the location folder of a file with the ID specified in the request.
|
String |
getInnerDocumentServerUrl()
Returns the inner URL to the Document Server.
|
String |
getServiceUrl(RequestedService requestedService)
Returns the URL to the service using the requested service properties specified in the request.
|
String |
getTestConvertUrl(String url)
Returns the URL to the test file.
|
String |
replaceToDocumentServerUrl(String url)
Replaces the internal URL from the Document Server with the Document Server URL.
|
String |
replaceToInnerDocumentServerUrl(String url)
Replaces the URL to the Document Server with the internal one.
|
String |
sanitizeUrl(String url)
Removes the trailing slash from the URL if it exists.
|
private SettingsManager settingsManager
public String getDocumentServerUrl()
UrlManagergetDocumentServerUrl in interface UrlManagerpublic String getInnerDocumentServerUrl()
UrlManagergetInnerDocumentServerUrl in interface UrlManagerpublic String getDocumentServerApiUrl()
UrlManagergetDocumentServerApiUrl in interface UrlManagerpublic String getDocumentServerApiUrl(String shardKey)
UrlManagergetDocumentServerApiUrl in interface UrlManagershardKey - The shardKey parameter for insert to the URL query string.public String getDocumentServerPreloaderApiUrl()
UrlManagergetDocumentServerPreloaderApiUrl in interface UrlManagerpublic String getServiceUrl(RequestedService requestedService)
UrlManagergetServiceUrl in interface UrlManagerrequestedService - The requested service.public String sanitizeUrl(String url)
UrlManagersanitizeUrl in interface UrlManagerurl - The URL to the Document Server.public String replaceToDocumentServerUrl(String url)
UrlManagerreplaceToDocumentServerUrl in interface UrlManagerurl - The internal URL from the Document Server.public String replaceToInnerDocumentServerUrl(String url)
UrlManagerreplaceToInnerDocumentServerUrl in interface UrlManagerurl - The URL to the Document Server.public String getFileUrl(String fileId)
UrlManagergetFileUrl in interface UrlManagerfileId - The file ID.public String getCallbackUrl(String fileId)
UrlManagergetCallbackUrl in interface UrlManagerfileId - The file ID.public String getGobackUrl(String fileId)
UrlManagergetGobackUrl in interface UrlManagerfileId - The file ID.public String getCreateUrl(String fileId)
UrlManagergetCreateUrl in interface UrlManagerfileId - The file ID.public String getTestConvertUrl(String url)
UrlManagergetTestConvertUrl in interface UrlManagerurl - The URL to the integration Product.Copyright © 2023–2024. All rights reserved.