public class FtpLocation
extends java.lang.Object
Constructor and Description |
---|
FtpLocation(FtpLocation floc,
java.lang.String path)
Constructs a new FtpLocation based on this one.
|
FtpLocation(java.lang.String loc)
Constructs a new FtpLocation from a URL-like string.
|
Modifier and Type | Method and Description |
---|---|
java.net.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.
|
java.lang.String |
getPath()
Returns the full directory path for this node.
|
java.net.URL |
getURL()
Returns the URL representing this directory.
|
public FtpLocation(java.lang.String loc) throws NoSuchDataException
loc
- url of the ftp directoryNoSuchDataException
public FtpLocation(FtpLocation floc, java.lang.String path) throws NoSuchDataException
floc
- the object from which to copy connection informationpath
- the absolute or relative path of the new location objectNoSuchDataException
public java.lang.String getPath()
public java.net.URL getBaseURL()
public java.net.URL getURL()
public FtpLocation getParent()
public org.apache.commons.net.ftp.FTPClient getClient() throws java.io.IOException
java.io.IOException
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.