|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.sftp.requests.AttributesRequest
public class AttributesRequest
Constructor Summary | |
---|---|
AttributesRequest()
|
Method Summary | |
---|---|
void |
execute(SftpClient client)
Executes request. |
boolean |
getFollowLink()
Returns follow link flag. |
java.util.Date |
getModificationDate()
Returns last modification date. |
java.lang.String |
getPath()
Returns target path. |
java.lang.Integer |
getPermissions()
Returns permissions in UNIX chmod format. |
java.lang.Long |
getSize()
Returns file size if present. |
java.lang.Boolean |
isDirectory()
|
boolean |
isValid()
Checks if request is in valid state. |
void |
setFollowLink(boolean followLink)
Sets follow link flag. |
void |
setPath(java.lang.String path)
Sets target path. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributesRequest()
Method Detail |
---|
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- target pathpublic boolean getFollowLink()
true
if request will try to follow link if any;
false
otherwisepublic void setFollowLink(boolean followLink)
followLink
- follow link flagpublic java.lang.Long getSize()
public java.lang.Integer getPermissions()
public java.util.Date getModificationDate()
public java.lang.Boolean isDirectory()
public boolean isValid()
Request
isValid
in interface Request
true
if request is valid;
false
otherwiseRequest.isValid()
public void execute(SftpClient client) throws SftpException
Request
execute
in interface Request
client
- client
SftpException
- if an error occursRequest.execute(com.jscape.inet.sftp.SftpClient)
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |