类 DefaultUrlManager

java.lang.Object
com.onlyoffice.manager.url.DefaultUrlManager
所有已实现的接口:
UrlManager

public class DefaultUrlManager extends Object implements UrlManager
  • 构造器详细资料

    • DefaultUrlManager

      public DefaultUrlManager(SettingsManager settingsManager)
  • 方法详细资料

    • getSettingsManager

      public SettingsManager getSettingsManager()
    • setSettingsManager

      public void setSettingsManager(SettingsManager settingsManager)
    • getDocumentServerUrl

      public String getDocumentServerUrl()
      从接口复制的说明: UrlManager
      Returns the URL to the Document Server.
      指定者:
      getDocumentServerUrl 在接口中 UrlManager
      返回:
      The URL to the Document Server.
    • getInnerDocumentServerUrl

      public String getInnerDocumentServerUrl()
      从接口复制的说明: UrlManager
      Returns the inner URL to the Document Server.
      指定者:
      getInnerDocumentServerUrl 在接口中 UrlManager
      返回:
      The inner URL to the Document Server.
    • getDocumentServerApiUrl

      public String getDocumentServerApiUrl()
      从接口复制的说明: UrlManager
      Returns the URL to the Document Server API.
      指定者:
      getDocumentServerApiUrl 在接口中 UrlManager
      返回:
      The URL to the Document Server API.
    • getDocumentServerPreloaderApiUrl

      public String getDocumentServerPreloaderApiUrl()
      从接口复制的说明: UrlManager
      Returns the URL to the Document Server Preloader API.
      指定者:
      getDocumentServerPreloaderApiUrl 在接口中 UrlManager
      返回:
      The URL to the Document Server Preloader API.
    • getServiceUrl

      public String getServiceUrl(RequestedService requestedService)
      从接口复制的说明: UrlManager
      Returns the URL to the service using the requested service properties specified in the request.
      指定者:
      getServiceUrl 在接口中 UrlManager
      参数:
      requestedService - The requested service.
      返回:
      The URL to ONLYOFFICE service.
    • sanitizeUrl

      public String sanitizeUrl(String url)
      从接口复制的说明: UrlManager
      Removes the trailing slash from the URL if it exists.
      指定者:
      sanitizeUrl 在接口中 UrlManager
      参数:
      url - The URL to the Document Server.
      返回:
      The URL without the trailing slash.
    • replaceToDocumentServerUrl

      public String replaceToDocumentServerUrl(String url)
      从接口复制的说明: UrlManager
      Replaces the internal URL from the Document Server with the Document Server URL.
      指定者:
      replaceToDocumentServerUrl 在接口中 UrlManager
      参数:
      url - The internal URL from the Document Server.
      返回:
      The URL start with Document Server URL.
    • replaceToInnerDocumentServerUrl

      public String replaceToInnerDocumentServerUrl(String url)
      从接口复制的说明: UrlManager
      Replaces the URL to the Document Server with the internal one.
      指定者:
      replaceToInnerDocumentServerUrl 在接口中 UrlManager
      参数:
      url - The URL to the Document Server.
      返回:
      The internal URL.
    • getFileUrl

      public String getFileUrl(String bucket, String fileId)
      从接口复制的说明: UrlManager
      Returns the URL to download a file with the ID specified in the request.
      指定者:
      getFileUrl 在接口中 UrlManager
      参数:
      bucket - The file bucket.
      fileId - The file ID.
      返回:
      The URL to download a file.
    • getCallbackUrl

      public String getCallbackUrl(String bucket, String fileId)
      从接口复制的说明: UrlManager
      Returns the URL to the callback handler.
      指定者:
      getCallbackUrl 在接口中 UrlManager
      参数:
      bucket - The file bucket.
      fileId - The file ID.
      返回:
      The URL to the callback handler.
    • getGobackUrl

      public String getGobackUrl(String bucket, String fileId)
      从接口复制的说明: UrlManager
      Returns the URL to the location folder of a file with the ID specified in the request.
      指定者:
      getGobackUrl 在接口中 UrlManager
      参数:
      bucket - The file bucket.
      fileId - The file ID.
      返回:
      The URL to the file location folder.
    • getCreateUrl

      public String getCreateUrl(String bucket, String fileId)
      从接口复制的说明: UrlManager
      Returns the URL to create a new file with the ID specified in the request.
      指定者:
      getCreateUrl 在接口中 UrlManager
      参数:
      bucket - The file bucket.
      fileId - The file ID.
      返回:
      The URL to create a new file.
    • getTestConvertUrl

      public String getTestConvertUrl(String url)
      从接口复制的说明: UrlManager
      Returns the URL to the test file.
      指定者:
      getTestConvertUrl 在接口中 UrlManager
      参数:
      url - The URL to the integration Product.
      返回:
      The URL to the test file.