|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.datanode.nodes.FtpLocation
public class FtpLocation
Encapsulates the location of a directory on an FTP server.
Constructor Summary | |
---|---|
FtpLocation(FtpLocation floc,
String path)
Constructs a new FtpLocation based on this one. |
|
FtpLocation(String loc)
Constructs a new FtpLocation from a URL-like string. |
Method Summary | |
---|---|
URL |
getBaseURL()
Returns a URL representing the connection used by this object. |
org.apache.commons.net.ftp.FTPClient |
getClient()
Returns an FTP client for use at this location from a public pool. |
FtpLocation |
getParent()
Returns the FtpLocation representing the parent directory of this one, if it has one. |
String |
getPath()
Returns the full directory path for this node. |
URL |
getURL()
Returns the URL representing this directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FtpLocation(String loc) throws NoSuchDataException
loc
- url of the ftp directory
NoSuchDataException
public FtpLocation(FtpLocation floc, String path) throws NoSuchDataException
floc
- the object from which to copy connection informationpath
- the absolute or relative path of the new location object
NoSuchDataException
Method Detail |
---|
public String getPath()
public URL getBaseURL()
public URL getURL()
public FtpLocation getParent()
public org.apache.commons.net.ftp.FTPClient getClient() throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |