com.mooapi.common.command.server
Class MessageOfTheDay

java.lang.Object
  extended by com.mooapi.common.command.server.AbstractServerCommand
      extended by com.mooapi.common.command.server.MessageOfTheDay
All Implemented Interfaces:
Command

public class MessageOfTheDay
extends AbstractServerCommand

MooAPI MOTD output command.

Author:
Steve Taylor

Constructor Summary
MessageOfTheDay(java.lang.String motd)
          Initialize.
 
Method Summary
static MessageOfTheDay decode(org.apache.mina.common.ByteBuffer buffer)
           
 org.apache.mina.common.ByteBuffer encode()
          Encode this command as a byte stream.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getMotd()
          Get the message of the day.
 int hashCode()
           
 java.lang.String toString()
          Generate a string representation of this message.
 
Methods inherited from class com.mooapi.common.command.server.AbstractServerCommand
getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageOfTheDay

public MessageOfTheDay(java.lang.String motd)
Initialize.

Parameters:
motd - The message of the day.
Method Detail

decode

public static MessageOfTheDay decode(org.apache.mina.common.ByteBuffer buffer)

encode

public org.apache.mina.common.ByteBuffer encode()
Encode this command as a byte stream.

Specified by:
encode in class AbstractServerCommand
Returns:
A buffer containing the encoded command.

getMotd

public java.lang.String getMotd()
Get the message of the day.

Returns:
The message of the day.

toString

public java.lang.String toString()
Generate a string representation of this message.

Specified by:
toString in class AbstractServerCommand
Returns:
A string representation of this message.

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in class AbstractServerCommand
Parameters:
obj -
Returns:

hashCode

public int hashCode()
Specified by:
hashCode in class AbstractServerCommand
Returns:


Copyright © 2009. All Rights Reserved.