public class AgentPayload extends Object
Constructor and Description |
---|
AgentPayload(String sFilepath,
String sDesc,
String sContentEncode,
String sContentType,
String sTimeStamp,
long iFilesize,
long iChecksum)
constructor
|
AgentPayload(String sFilepath,
String sDesc,
String sContentEncode,
String sContentType,
String sTimeStamp,
long iFilesize,
long iChecksum,
String[] arrURL)
constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getCheckSum()
get the checksum
|
String |
getContentEncoding()
get the content encoding
|
String |
getContentType()
get the content type
|
String |
getDesc()
get the description
|
String |
getFilename()
get the filename
|
String |
getFilepath()
get the file path
|
long |
getFileSize()
get the filesize
|
String[] |
getURLs()
retrieve list of server names where the file can be retrieve from
|
void |
setCheckSum(long sCheckSum)
set the checksum value
|
void |
setContentEncoding(String sContentEncoding)
set the content encoding
|
void |
setContentType(String sContentType)
set the content type
|
void |
setDesc(String sDesc)
set the description
|
void |
setFilepath(String sFilepath)
set the file path
|
void |
setFileSize(long sFileSize)
set the filesize value
|
String |
setTimeStamp()
get the timestamp
|
void |
setTimeStamp(String sTimestamp)
set the timestamp
|
void |
setURLs(String[] lst)
retrieve list of server names where the file can be retrieve from
|
String |
toString()
display string value of class
|
static void |
writeErr(String aStr)
write a error messgae to console
|
static void |
writeLn()
write a line to console
|
static void |
writeLn(String aStr)
write a line to console
|
public AgentPayload(String sFilepath, String sDesc, String sContentEncode, String sContentType, String sTimeStamp, long iFilesize, long iChecksum)
sFilepath
- file namesDesc
- descriptionsContentEncode
- content encoding techniquesContentType
- content typesTimeStamp
- creation time stampiFilesize
- file sizeiChecksum
- ZIP check sumpublic AgentPayload(String sFilepath, String sDesc, String sContentEncode, String sContentType, String sTimeStamp, long iFilesize, long iChecksum, String[] arrURL)
sFilepath
- file namesDesc
- descriptionsContentEncode
- content encoding techniquesContentType
- content typesTimeStamp
- creation time stampiFilesize
- file sizeiChecksum
- ZIP check sumarrURL
- list of URLspublic long getCheckSum()
public void setCheckSum(long sCheckSum)
sCheckSum
- ZIP checksumpublic String getContentEncoding()
public void setContentEncoding(String sContentEncoding)
sContentEncoding
- encoding techniquepublic String getContentType()
public void setContentType(String sContentType)
sContentType
- string valuepublic String getDesc()
public void setDesc(String sDesc)
sDesc
- string valuepublic String getFilename()
public String getFilepath()
public void setFilepath(String sFilepath)
sFilepath
- string valuepublic long getFileSize()
public void setFileSize(long sFileSize)
sFileSize
- file sizepublic String setTimeStamp()
public void setTimeStamp(String sTimestamp)
sTimestamp
- string valuepublic String[] getURLs()
public void setURLs(String[] lst)
lst
- list of URLspublic String toString()
public static void writeErr(String aStr)
aStr
- line to be written to consolepublic static void writeLn(String aStr)
aStr
- line to be written to consolepublic static void writeLn()