Class MessageS2CLoginNACK

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

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

    • MessageS2CLoginNACK

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

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

    • getResolutionCode

      public MessageS2CLoginNACK.Reasons getResolutionCode()
      This method returns the resolution of the login event
      Returns:
      a byte representing the resolution given.
    • getResolution

      public String getResolution()
      This method returns a String that represent the resolution given to the login event
      Returns:
      a string representing the resolution.
    • 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
    • writeToJson

      public void writeToJson(StringBuilder out)
      Description copied from class: Message
      Serialize the object to json
      Overrides:
      writeToJson in class Message
      Parameters:
      out - output buffer