public class GXFtpRequest extends Object
setUser().
setValue()
method and pre defined constants such as:setValue(GXMFCommands.CMD_MF_DATA_TYPE, GXMFCommands.CMD_VAL_MF_DATA_TYPE_BIN);
GXFtpManager.instance().putFile(GXFtpRequest);
GXFtpManager.instance().getFile(GXFtpRequest);
Constructor and Description |
---|
GXFtpRequest()
Class constractor
|
Modifier and Type | Method and Description |
---|---|
String |
getAdditionalCommand()
For internal use
|
byte[] |
getLocalFile()
For internal use
|
byte[] |
getLocalFileBytes()
For internal use
|
String |
getPassword()
For internal use
|
String |
getRemoteFile()
For internal use
|
String |
getServer()
For internal use
|
String |
getUser()
For internal use
|
String |
getValue(String key)
For internal use
|
String |
getValues()
For internal use
|
void |
readFileToUpload(String filename)
Reads and stores the content of the local file into the request data structure.
|
void |
setAdditional(String additionalCommands)
Sets an additional user defined command for the FTP request.
|
void |
setLocalFileBytes(byte[] fileByBytes)
For internal use
|
void |
setPassword(String password)
Sets the remote host FTP password
|
void |
setRemoteFile(String remoteFile)
Sets the remote file name using the full path.
|
void |
setServer(String server)
Sets the FTP remote server IP address.
|
void |
setUser(String user)
Sets the FTP server user name.
|
void |
setValue(String key,
String value)
Stores command values in the FTP request.
|
public String getValues()
public void setValue(String key, String value)
setValue(GXMFCommands.CMD_MF_DATA_TYPE, GXMFCommands.CMD_VAL_MF_DATA_TYPE_BIN);
key
- command constant which can be either from the GXMFCommands
class or from the
GXAS400Commands
class.value
- The cmd value, which can be a constant either from one of these classes
(GXMFCommands
or
GXAS400Commands
) or a positive number.public String getPassword()
public void setPassword(String password)
password
- host password.public String getRemoteFile()
public void setRemoteFile(String remoteFile)
remoteFile
- The full path name of the remote name.public String getServer()
public void setServer(String server)
server
- public String getUser()
public void setUser(String user)
user
- public void setLocalFileBytes(byte[] fileByBytes)
public byte[] getLocalFileBytes()
public byte[] getLocalFile()
public void setAdditional(String additionalCommands)
additionalCommands
- public String getAdditionalCommand()
public void readFileToUpload(String filename) throws GXGeneralException, IOException
filename
- GXGeneralException
IOException
Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.