Package marauroa.common.net.message
Class MessageS2CLoginMessageNACK
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageS2CLoginMessageNACK
- All Implemented Interfaces:
Serializable
This message indicate the client that the server has reject its login Message
- See Also:
Message
-
Nested Class Summary
Nested classes/interfaces inherited from class marauroa.common.net.message.Message
Message.MessageType -
Field Summary
Fields inherited from class marauroa.common.net.message.Message
channel, clientid, CLIENTID_INVALID, protocolVersion, timestampMessage, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for allowing creation of an empty messageMessageS2CLoginMessageNACK(Channel source, String reason)Constructor with a TCP/IP source/destination of the message -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the reason for the rejection of the login eventvoidSerialize the object from an ObjectInputtoString()This method returns a String that represent the objectvoidwriteObject(OutputSerializer out)Serialize the object into an ObjectOutputMethods inherited from class marauroa.common.net.message.Message
getAddress, getChannel, getClientID, getMessageTimestamp, getProtocolVersion, getType, internalToString, isPerception, isSkippable, readFromMap, requiresPerception, setChannel, setClientID, setProtocolVersion, writeToJson
-
Constructor Details
-
MessageS2CLoginMessageNACK
public MessageS2CLoginMessageNACK()Constructor for allowing creation of an empty message -
MessageS2CLoginMessageNACK
Constructor with a TCP/IP source/destination of the message- Parameters:
source- The TCP/IP address associated to this messagereason- the reason to deny the login
-
-
Method Details
-
getReason
This method returns the reason for the rejection of the login event- Returns:
- reason.
-
toString
This method returns a String that represent the object -
writeObject
Description copied from class:MessageSerialize the object into an ObjectOutput- Specified by:
writeObjectin interfaceSerializable- Overrides:
writeObjectin classMessage- Parameters:
out- the output serializer.- Throws:
IOException- if the serializations fails
-
readObject
Description copied from class:MessageSerialize the object from an ObjectInput- Specified by:
readObjectin interfaceSerializable- Overrides:
readObjectin classMessage- Parameters:
in- the input serializer- Throws:
IOException- if the serializations fails
-