public class GenericFileName extends AbstractFileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR| Modifier | Constructor and Description |
|---|---|
protected |
GenericFileName(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) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendCredentials(java.lang.StringBuilder buffer,
boolean addPassword)
append the user credentials
|
protected void |
appendRootUri(java.lang.StringBuilder buffer,
boolean addPassword)
Builds the root URI for this file name.
|
FileName |
createName(java.lang.String absPath,
FileType type)
Create a FileName.
|
int |
getDefaultPort()
Returns the default port for this file name.
|
java.lang.String |
getHostName()
Returns the host name part of this name.
|
java.lang.String |
getPassword()
Returns the password part of this name.
|
int |
getPort()
Returns the port part of this name.
|
java.lang.String |
getUserName()
Returns the user name part of this name.
|
checkName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, toStringprotected GenericFileName(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)
public java.lang.String getUserName()
public java.lang.String getPassword()
public java.lang.String getHostName()
public int getPort()
public int getDefaultPort()
public FileName createName(java.lang.String absPath, FileType type)
createName in class AbstractFileNameabsPath - The absolute path.type - The FileType.protected void appendRootUri(java.lang.StringBuilder buffer,
boolean addPassword)
appendRootUri in class AbstractFileNamebuffer - A StringBuilder to use to construct the URI.addPassword - true if the password should be added, false otherwise.protected void appendCredentials(java.lang.StringBuilder buffer,
boolean addPassword)