接口 UrlManager

所有已知实现类:
DefaultUrlManager

public interface UrlManager
  • 方法详细资料

    • 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

      String getFileUrl(String bucket, String fileId)
      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

      String getCallbackUrl(String bucket, String fileId)
      Returns the URL to the callback handler.
      参数:
      bucket - The file bucket.
      fileId - The file ID.
      返回:
      The URL to the callback handler.
    • getGobackUrl

      String getGobackUrl(String bucket, String fileId)
      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

      String getCreateUrl(String bucket, String fileId)
      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

      String getServiceUrl(RequestedService requestedService)
      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

      String sanitizeUrl(String url)
      Removes the trailing slash from the URL if it exists.
      参数:
      url - The URL to the Document Server.
      返回:
      The URL without the trailing slash.
    • replaceToDocumentServerUrl

      String replaceToDocumentServerUrl(String url)
      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

      String replaceToInnerDocumentServerUrl(String url)
      Replaces the URL to the Document Server with the internal one.
      参数:
      url - The URL to the Document Server.
      返回:
      The internal URL.
    • getTestConvertUrl

      String getTestConvertUrl(String url)
      Returns the URL to the test file.
      参数:
      url - The URL to the integration Product.
      返回:
      The URL to the test file.