org.apache.commons.vfs2.provider.url
Class UrlFileName

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractFileName
      extended by org.apache.commons.vfs2.provider.GenericFileName
          extended by org.apache.commons.vfs2.provider.URLFileName
              extended by org.apache.commons.vfs2.provider.url.UrlFileName
All Implemented Interfaces:
java.lang.Comparable<FileName>, FileName

public class UrlFileName
extends URLFileName

A URL FileName.

Author:
Commons VFS team

Field Summary
 
Fields inherited from interface org.apache.commons.vfs2.FileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
 
Constructor Summary
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)
          The constructor.
 
Method Summary
protected  void appendRootUri(java.lang.StringBuilder buffer, boolean addPassword)
          Builds the root URI for this file name.
 
Methods inherited from class org.apache.commons.vfs2.provider.URLFileName
createName, createURI, getPathQuery, getPathQueryEncoded, getQueryString, getURIEncoded
 
Methods inherited from class org.apache.commons.vfs2.provider.GenericFileName
appendCredentials, getDefaultPort, getHostName, getPassword, getPort, getUserName
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileName
checkName, compareTo, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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)
The constructor.

Parameters:
scheme - The scheme to use.
hostName - The host name.
port - The port.
defaultPort - The default port.
userName - The user's login id.
password - The user's credentials.
path - The file path.
type - The file type.
queryString - Parameters to use when locating or creating the file name.
Method Detail

appendRootUri

protected void appendRootUri(java.lang.StringBuilder buffer,
                             boolean addPassword)
Description copied from class: GenericFileName
Builds the root URI for this file name.

Overrides:
appendRootUri in class GenericFileName
Parameters:
buffer - A StringBuilder to use to construct the URI.
addPassword - true if the password should be added, false otherwise.