Class URLFileName

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

public class URLFileName extends GenericFileName
  • Constructor Details

  • Method Details

    • getQueryString

      public String getQueryString()
      get the query string
      Returns:
      the query string part of the filename
    • getPathQuery

      public String getPathQuery()
      get 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 org.apache.commons.httpclient.URIException, FileSystemException
      get the path encoded suitable for url like filesystem e.g. (http, webdav)
      Parameters:
      charset - the charset used for the path encoding
      Throws:
      org.apache.commons.httpclient.URIException
      FileSystemException
    • createName

      public FileName createName(String absPath, FileType type)
      Description copied from class: AbstractFileName
      Factory method for creating name instances.
      Overrides:
      createName in class GenericFileName
    • createURI

      protected String createURI()
      append query string to the uri
      Overrides:
      createURI in class AbstractFileName
      Returns:
      the uri
    • getURIEncoded

      public String getURIEncoded(String charset) throws FileSystemException, org.apache.commons.httpclient.URIException
      Throws:
      FileSystemException
      org.apache.commons.httpclient.URIException