Class FileTransferID

    • Constructor Detail

      • FileTransferID

        public FileTransferID​(Namespace namespace,
                              URL url)
      • FileTransferID

        public FileTransferID​(Namespace namespace,
                              URI uri)
        Parameters:
        namespace - namespace
        uri - uri
        Since:
        3.2
    • Method Detail

      • getFilename

        public String getFilename()
        Description copied from interface: IFileID
        Get the file name from this IFileID. This will return just the filename portion of a more complex file ID, e.g. index.html from IFileID created with value "http://www.composent.com/index.html"
        Specified by:
        getFilename in interface IFileID
        Returns:
        String just the file name and extension (if any) for this given IFileID. Will not be null.
      • getURL

        public URL getURL()
                   throws MalformedURLException
        Description copied from interface: IFileID
        Get the url associated with the file identified by this IFileID.
        Specified by:
        getURL in interface IFileID
        Returns:
        URL associated with this IFileID. Will not be null.
        Throws:
        MalformedURLException - thrown if URL cannot be created for this IFileID
      • getFileNameOnly

        protected String getFileNameOnly()
      • getURI

        public URI getURI()
                   throws URISyntaxException
        Description copied from interface: IFileID
        Get the URI associated with the file identified by this IFileID.
        Specified by:
        getURI in interface IFileID
        Returns:
        URI associated with this IFileID. Will not be null.
        Throws:
        URISyntaxException - thrown if URI cannot be created for this IFileID.
        Since:
        3.2