Class URLFileName

All Implemented Interfaces:
Comparable<FileName>, FileName
Direct Known Subclasses:
UrlFileName

@Deprecated public class URLFileName extends GenericFileName
Deprecated.
Use GenericURLFileName as it doesn't depend on Http Client v3 API directly.
A file name that represents URL.
  • Field Details

    • BUFFER_SIZE

      private static final int BUFFER_SIZE
      Deprecated.
      See Also:
    • queryString

      private final String queryString
      Deprecated.
  • Constructor Details

  • Method Details

    • getQueryString

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

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

      public String getPathQueryEncoded(String charset) throws URISyntaxException, 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:
      URISyntaxException - If an error occurs encoding the URI.
      FileSystemException - If some other error occurs.
    • createName

      public FileName createName(String absPath, FileType type)
      Deprecated.
      Create a FileName.
      Overrides:
      createName in class GenericFileName
      Parameters:
      absPath - The absolute path.
      type - The FileType.
      Returns:
      The FileName
    • createURI

      protected String createURI()
      Deprecated.
      Appends query string to the URI.
      Overrides:
      createURI in class AbstractFileName
      Returns:
      the URI
    • getURIEncoded

      public String getURIEncoded(String charset) throws FileSystemException, URISyntaxException
      Deprecated.
      Encodes a URI.
      Parameters:
      charset - The character set.
      Returns:
      The encoded URI
      Throws:
      FileSystemException - if some other exception occurs.
      URISyntaxException - if an exception occurs encoding the URI.