|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.GenericFileName
public class GenericFileName
A file name that represents a 'generic' URI, as per RFC 2396. Consists of a scheme, userinfo (typically username and password), hostname, port, and path.
| Field Summary |
|---|
| Fields inherited from interface org.apache.commons.vfs2.FileName |
|---|
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR |
| Constructor Summary | |
|---|---|
protected |
GenericFileName(String scheme,
String hostName,
int port,
int defaultPort,
String userName,
String password,
String path,
FileType type)
|
| Method Summary | |
|---|---|
protected void |
appendCredentials(StringBuilder buffer,
boolean addPassword)
append the user credentials |
protected void |
appendRootUri(StringBuilder buffer,
boolean addPassword)
Builds the root URI for this file name. |
FileName |
createName(String absPath,
FileType type)
Create a FileName. |
int |
getDefaultPort()
Returns the default port for this file name. |
String |
getHostName()
Returns the host name part of this name. |
String |
getPassword()
Returns the password part of this name. |
int |
getPort()
Returns the port part of this name. |
String |
getUserName()
Returns the user name part of this name. |
| Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileName |
|---|
checkName, compareTo, createURI, 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 |
|---|
protected GenericFileName(String scheme,
String hostName,
int port,
int defaultPort,
String userName,
String password,
String path,
FileType type)
| Method Detail |
|---|
public String getUserName()
public String getPassword()
public String getHostName()
public int getPort()
public int getDefaultPort()
public FileName createName(String absPath,
FileType type)
createName in class AbstractFileNameabsPath - The absolute path.type - The FileType.
protected void appendRootUri(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(StringBuilder buffer,
boolean addPassword)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||