Class UploadRequest
java.lang.Object
ch.autumo.beetroot.server.message.AbstractMessage
ch.autumo.beetroot.server.message.ServerCommand
ch.autumo.beetroot.server.message.file.UploadRequest
- Direct Known Subclasses:
PingUploadRequest
Upload request; client-side.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic charDivider character for entity holding file name and check-sum.Fields inherited from class ch.autumo.beetroot.server.message.ServerCommand
DISPATCHER_ID_INTERNAL, host, portFields inherited from class ch.autumo.beetroot.server.message.AbstractMessage
domain, ENCRYPT, entity, fileId, id, INTERNAL_MSG_PART_SEPARATOR, INTERNAL_MSG_PART_SEPARATOR_REGEXP, LOG, message, MSG_PART_SEPARATOR, MSG_PART_SEPARATOR_REGEXP, object -
Constructor Summary
ConstructorsConstructorDescriptionUploadRequest(File file, String user, String domain) File command to send before sending a file to server. -
Method Summary
Methods inherited from class ch.autumo.beetroot.server.message.ServerCommand
forceSockets, getCommand, getDispatcherId, getHost, getJsonTransferString, getMode, getPort, getServerName, getTimeout, getTransferString, isForceSockets, parse, parseJson, reInitMethods inherited from class ch.autumo.beetroot.server.message.AbstractMessage
contains, deserializeObject, getData, getDataLength, getDomain, getEntity, getFileId, getId, getJSONObject, getMessageIntValue, getMessageValue, getObject, serializeObject, setEntity, setObject
-
Field Details
-
ENTITY_DIVIDER_FILENAME_CHECKSUM
public static char ENTITY_DIVIDER_FILENAME_CHECKSUMDivider character for entity holding file name and check-sum.
-
-
Constructor Details
-
UploadRequest
File command to send before sending a file to server.- Parameters:
file- fileuser- user or nulldomain- domain or null (default)- Throws:
IOException- IO exception
-
-
Method Details
-
setFile
Set file.- Parameters:
file- file- Throws:
IOException- IO exception
-
getFile
Get file.- Returns:
- file
-