|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.cas.pushpull.protocol.ProtocolPath
public class ProtocolPath
This class wraps up a URL for a given path, and whether the path specified by the URL is a dirctory or not
| Field Summary | |
|---|---|
protected boolean |
isDir
Specifies whether this path is a path to a directory or file |
protected String |
path
The string verion of the path in the URL |
protected boolean |
relativeToHOME
|
protected String |
remotePath
|
| Constructor Summary | |
|---|---|
ProtocolPath()
|
|
ProtocolPath(String path,
boolean isDir)
|
|
| Method Summary | |
|---|---|
protected String |
checkForDelimiters(String path)
|
boolean |
equals(Object path)
|
String |
getDownloadFileName()
Returns the file name that is used when downloading the file |
String |
getDownloadPath()
Returns the path that is used when downloading the file |
String |
getFileName()
Return the name of the file for which this path belongs |
String |
getParentDirPath()
|
ProtocolPath |
getParentPath()
|
String |
getPathString()
|
boolean |
isDirectory()
Tells whether this path is a path to a directory or not |
boolean |
isRelativeToHOME()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String path
protected String remotePath
protected boolean relativeToHOME
protected boolean isDir
| Constructor Detail |
|---|
public ProtocolPath()
public ProtocolPath(String path,
boolean isDir)
| Method Detail |
|---|
protected String checkForDelimiters(String path)
public boolean isRelativeToHOME()
public String getPathString()
public String getFileName()
public String getDownloadPath()
public String getDownloadFileName()
public boolean isDirectory()
public boolean equals(Object path)
equals in class Object
public String getParentDirPath()
throws MalformedURLException
MalformedURLExceptionpublic String toString()
toString in class Object
public ProtocolPath getParentPath()
throws MalformedURLException
MalformedURLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||