Request to get a file from a remote node.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
NONE |
Special value for localFilename indicating that the data is not to be written to a file but is to be returned as a byte array in a subsequent RemoteFileNtf. |
protected java.lang.String |
credentials |
|
protected java.lang.String |
filename |
|
protected java.lang.String |
localFilename |
|
protected Priority |
priority |
|
protected boolean |
progress |
|
protected boolean |
resume |
|
protected int |
to |
| Type | Name and description |
|---|---|
java.lang.String |
credentials |
java.lang.String |
filename |
java.lang.String |
localFilename |
Priority |
priority |
int |
to |
| Constructor and description |
|---|
RemoteFileGetReq
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getCredentials()Gets the user credentials for authentication. |
|
java.lang.String |
getFilename()Gets the name of the remote file. |
|
java.lang.String |
getLocalFilename()Gets the name of the local file. |
|
Priority |
getPriority()Gets the priority of the request. |
|
boolean |
getProgress()Gets whether progress notifications are to be sent. |
|
boolean |
getResume()Gets if previously interrupted file transfer may be resumed. |
|
int |
getTo()Gets the destination node address. |
|
void |
setCredentials(java.lang.String credentials)Sets the user credentials for authentication. |
|
void |
setFilename(java.lang.String filename)Sets the name of the remote file. |
|
void |
setLocalFilename(java.lang.String filename)Sets the name of the local file. |
|
void |
setPriority(Priority priority)Sets the priority of the request. |
|
void |
setProgress(boolean b)Sets whether progress notifications should be sent. |
|
void |
setResume(boolean resume)Sets if previously interrupted file transfer may be resumed. |
|
void |
setTo(int destination)Sets the destination. |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class org.arl.fjage.Message |
org.arl.fjage.Message#toString(), org.arl.fjage.Message#setPerformative(org.arl.fjage.Performative), org.arl.fjage.Message#getPerformative(), org.arl.fjage.Message#setRecipient(org.arl.fjage.AgentID), org.arl.fjage.Message#getRecipient(), org.arl.fjage.Message#setSender(org.arl.fjage.AgentID), org.arl.fjage.Message#getSender(), org.arl.fjage.Message#setMessageID(java.lang.String), org.arl.fjage.Message#getMessageID(), org.arl.fjage.Message#setInReplyTo(java.lang.String), org.arl.fjage.Message#getInReplyTo(), org.arl.fjage.Message#setSentAt(long), org.arl.fjage.Message#getSentAt(), org.arl.fjage.Message#getJsonCache(), org.arl.fjage.Message#setJsonCache(java.lang.String), org.arl.fjage.Message#wait(long, int), org.arl.fjage.Message#wait(long), org.arl.fjage.Message#wait(), org.arl.fjage.Message#equals(java.lang.Object), org.arl.fjage.Message#hashCode(), org.arl.fjage.Message#getClass(), org.arl.fjage.Message#notify(), org.arl.fjage.Message#notifyAll() |
Special value for localFilename indicating that the data is not to be written to a file but is to be returned as a byte array in a subsequent RemoteFileNtf.
Gets the user credentials for authentication.
Gets the name of the remote file.
Gets the name of the local file.
Gets the priority of the request.
Gets whether progress notifications are to be sent.
Gets if previously interrupted file transfer may be resumed.
Gets the destination node address.
Sets the user credentials for authentication.
credentials - credentialsSets the name of the remote file.
filename - name of the remote fileSets the name of the local file. If the local filename is null, it is assumed to be the same as the remote filename. If the local filename is set to an empty string, the data is not written to a file but is returned as a byte array a subsequent RemoteFileNtf.
filename - name of the local fileSets the priority of the request. Priority is advisory, and an agent may choose to ignore it, if it does not support prioritization.
priority - priority assigned to the request.Sets whether progress notifications should be sent.
b - true to send progress notificationsSets if previously interrupted file transfer may be resumed.
resume - true if resume allowed, false to start afreshSets the destination.
destination - addressGroovy Documentation