Interface WebDavService

  • All Known Implementing Classes:
    WebDavServiceImpl

    @Deprecated
    public interface WebDavService
    Deprecated.
    This service has been replaced by WebDavService
    Defines the operations available for a WebDAV server.
    Author:
    joseross
    • Method Detail

      • list

        List<WebDavItem> list​(String site,
                              String profileId,
                              String path,
                              String type)
                       throws WebDavException
        Deprecated.
        Lists resources in the specified path.
        Parameters:
        site - the name of the site
        profileId - the id of the profile
        path - the relative path to list
        type - mime type used for filtering
        Returns:
        list of resources found
        Throws:
        WebDavException - if there is an error connecting to the server or listing the resources
      • upload

        String upload​(String site,
                      String profileId,
                      String path,
                      String filename,
                      InputStream content)
               throws WebDavException
        Deprecated.
        Uploads a file in the specified path.
        Parameters:
        site - the name of the site
        profileId - the id of the profile
        path - the relative path to upload the file
        filename - the name of the file to upload
        content - stream providing the content of the file
        Returns:
        the full URL of the uploaded file
        Throws:
        WebDavException - if there is an error connecting to the server or uploading the file