public class GetFileResponse extends RPCResponse
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CRC |
static String |
KEY_FILE_TYPE |
static String |
KEY_LENGTH |
static String |
KEY_OFFSET |
KEY_INFO, KEY_RESULT_CODE, KEY_SUCCESSfunction, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
GetFileResponse()
Constructs a new PublishAppServiceResponse object
|
GetFileResponse(Boolean success,
Result resultCode)
Constructs a new PublishAppServiceResponse object
|
GetFileResponse(Hashtable<String,Object> hash) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCRC()
Additional CRC32 checksum to protect data integrity up to 512 Mbits
minvalue="0" maxvalue="4294967295"
|
FileType |
getFileType()
File type that is being sent in response
|
Integer |
getLength()
Optional length in bytes for resuming partial data chunks if offset is set to 0, then length
is the total length of the file to be downloaded
minvalue="0" maxvalue="2000000000"
|
Integer |
getOffset()
Optional offset in bytes for resuming partial data chunks
minvalue="0" maxvalue="2000000000"
|
GetFileResponse |
setCRC(Integer crc)
Additional CRC32 checksum to protect data integrity up to 512 Mbits
minvalue="0" maxvalue="4294967295"
|
GetFileResponse |
setFileType(FileType fileType)
File type that is being sent in response
|
GetFileResponse |
setLength(Integer length)
Optional length in bytes for resuming partial data chunks if offset is set to 0, then length
is the total length of the file to be downloaded
minvalue="0" maxvalue="2000000000"
|
GetFileResponse |
setOffset(Integer offset)
Optional offset in bytes for resuming partial data chunks
minvalue="0" maxvalue="2000000000"
|
getCorrelationID, getInfo, getResultCode, getSuccess, setCorrelationID, setInfo, setResultCode, setSuccessgetBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, format, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_OFFSET
public static final String KEY_LENGTH
public static final String KEY_FILE_TYPE
public static final String KEY_CRC
public GetFileResponse()
public GetFileResponse setFileType(FileType fileType)
fileType - -public FileType getFileType()
public GetFileResponse setOffset(Integer offset)
offset - -public Integer getOffset()
public GetFileResponse setLength(Integer length)
length - -public Integer getLength()
public GetFileResponse setCRC(Integer crc)
crc - -public Integer getCRC()