Class MessageS2CLoginMessageNACK

java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageS2CLoginMessageNACK
All Implemented Interfaces:
Serializable

public class MessageS2CLoginMessageNACK extends Message
This message indicate the client that the server has reject its login Message
See Also:
Message
  • Constructor Details

    • MessageS2CLoginMessageNACK

      public MessageS2CLoginMessageNACK()
      Constructor for allowing creation of an empty message
    • MessageS2CLoginMessageNACK

      public MessageS2CLoginMessageNACK(Channel source, String reason)
      Constructor with a TCP/IP source/destination of the message
      Parameters:
      source - The TCP/IP address associated to this message
      reason - the reason to deny the login
  • Method Details

    • getReason

      public String getReason()
      This method returns the reason for the rejection of the login event
      Returns:
      reason.
    • toString

      public String toString()
      This method returns a String that represent the object
      Overrides:
      toString in class Message
      Returns:
      a string representing the object.
    • writeObject

      public void writeObject(OutputSerializer out) throws IOException
      Description copied from class: Message
      Serialize the object into an ObjectOutput
      Specified by:
      writeObject in interface Serializable
      Overrides:
      writeObject in class Message
      Parameters:
      out - the output serializer.
      Throws:
      IOException - if the serializations fails
    • readObject

      public void readObject(InputSerializer in) throws IOException
      Description copied from class: Message
      Serialize the object from an ObjectInput
      Specified by:
      readObject in interface Serializable
      Overrides:
      readObject in class Message
      Parameters:
      in - the input serializer
      Throws:
      IOException - if the serializations fails