Class URLFileName

    • Constructor Detail

      • URLFileName

        public URLFileName​(java.lang.String scheme,
                           java.lang.String hostName,
                           int port,
                           int defaultPort,
                           java.lang.String userName,
                           java.lang.String password,
                           java.lang.String path,
                           FileType type,
                           java.lang.String queryString)
        Deprecated.
        Constructs a new instance.
        Parameters:
        scheme - The host scheme.
        hostName - The host name or IP address.
        port - The host port.
        defaultPort - The default host port.
        userName - The user name.
        password - The user password.
        path - The host path.
        type - The file type on the host.
        queryString - The query after the path.
    • Method Detail

      • getPathQuery

        public java.lang.String getPathQuery()
        Deprecated.
        Gets the path and query string e.g. /path/servlet?param1=true.
        Returns:
        the path and its query string
      • getPathQueryEncoded

        public java.lang.String getPathQueryEncoded​(java.lang.String charset)
                                             throws org.apache.commons.httpclient.URIException,
                                                    FileSystemException
        Deprecated.
        Gets the path encoded suitable for url like file system e.g. (http, webdav).
        Parameters:
        charset - the charset used for the path encoding
        Returns:
        The encoded path.
        Throws:
        org.apache.commons.httpclient.URIException - If an error occurs encoding the URI.
        FileSystemException - If some other error occurs.
      • getQueryString

        public java.lang.String getQueryString()
        Deprecated.
        Gets the query string.
        Returns:
        the query string part of the file name
      • getURIEncoded

        public java.lang.String getURIEncoded​(java.lang.String charset)
                                       throws FileSystemException,
                                              org.apache.commons.httpclient.URIException
        Deprecated.
        Encodes a URI.
        Parameters:
        charset - The character set.
        Returns:
        The encoded URI
        Throws:
        FileSystemException - if some other exception occurs.
        org.apache.commons.httpclient.URIException - if an exception occurs encoding the URI.