Class PingUploadRequest
java.lang.Object
ch.autumo.beetroot.server.message.AbstractMessage
ch.autumo.beetroot.server.message.ServerCommand
ch.autumo.beetroot.server.message.file.UploadRequest
ch.autumo.beetroot.server.message.file.PingUploadRequest
Ping upload request.
-
Field Summary
FieldsFields inherited from class UploadRequest
ENTITY_DIVIDER_FILENAME_CHECKSUMModifier and TypeFieldDescriptionstatic charDivider character for entity holding file name and check-sum.Fields inherited from class ServerCommand
DISPATCHER_ID_INTERNAL, host, portFields inherited from class AbstractMessage
domain, ENCRYPT, entity, fileId, id, INTERNAL_MSG_PART_SEPARATOR, INTERNAL_MSG_PART_SEPARATOR_REGEXP, LOG, message, MSG_PART_SEPARATOR, MSG_PART_SEPARATOR_REGEXP, objectModifier and TypeFieldDescriptionprotected StringTransport domain name.protected static final booleanEncrypt client-server-com?protected StringTransport entity name.protected StringTransport file ID.protected longTransport entity ID.static final Stringinternal message part separatorstatic final Stringinternal message part separator regular expressionprotected static final org.slf4j.LoggerLogger.protected StringTransport message.static final Stringmessage part separatorstatic final Stringmessage part separator regular expressionprotected SerializableAdditional transport object. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class UploadRequest
getFile, setFileMethods inherited from class ServerCommand
forceSockets, getCommand, getDispatcherId, getHost, getJsonTransferString, getMode, getPort, getServerName, getTimeout, getTransferString, isForceSockets, parse, parseJson, reInitModifier and TypeMethodDescriptionvoidForce message over sockets; so web tunneling will be ignore.Get command.Get dispatcher idDispatcher.getHost()Server host; set by message itself.Get JSON representation; this includes all set information including the additional object if set.getMode()'sockets|web' - 'web' for tunneling, 'web' is not working for internal server commands.intgetPort()Server port; set by message itself.Server name; set by message itself.intTimeout for sending a server command client-side.Get transfer string; this includes all set information including the additional object is set.booleanIs message forced over sockets?static ServerCommandCreate a new server command out of transfer string.static ServerCommandCreate a new server command out of JSON transfer string.protected static voidreInit()Initialize configuration.Methods inherited from class AbstractMessage
contains, deserializeObject, getData, getDataLength, getDomain, getEntity, getFileId, getId, getJSONObject, getMessageIntValue, getMessageValue, getObject, serializeObject, setEntity, setObjectModifier and TypeMethodDescriptionbooleanChecks if this key is contained in a paired transport message.protected voiddeserializeObject(String serializedObject) Deserialize this object with FasterXML/Jackson.byte[]getData()Get transfer data; this includes all set information including an object.intGet transfer data length.Get a domain associated with this message or null.Get entity associated with this message or null.File ID if this message is used to transport file information.longgetId()Get entity ID associated with this message or null.org.json.JSONObjectReturn a JSON object or null; null means the object hold by this message represents another object type, but it is always serializable.intgetMessageIntValue(String key) Helper method for accessing paired transport message values.getMessageValue(String key) Helper method for accessing paired transport message values.Get serializable transport object hold by this message or null.protected StringSerialize this object with FasterXML/Jackson.voidSet an entity associated with this message.voidsetObject(Serializable object) Set any serializable object, usually a JSON string is meaningful for transport.
-
Field Details
-
PING_FILE_PREFIX
-
-
Constructor Details
-
PingUploadRequest
-