org.siebengeisslein.net.message
Class LoginMessage

java.lang.Object
  extended by org.siebengeisslein.net.message.LoginMessage
All Implemented Interfaces:
ClientMessage, Message

public class LoginMessage
extends java.lang.Object
implements ClientMessage


Constructor Summary
LoginMessage(java.io.DataInputStream in)
           
LoginMessage(java.lang.String login, java.lang.String password)
           
 
Method Summary
 void dispatch(ConnectionState state)
           
 boolean equals(java.lang.Object obj)
           
 byte getOpCode()
           
 int hashCode()
           
 void write(java.io.DataOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginMessage

public LoginMessage(java.io.DataInputStream in)
             throws java.io.IOException
Throws:
java.io.IOException

LoginMessage

public LoginMessage(java.lang.String login,
                    java.lang.String password)
Method Detail

write

public void write(java.io.DataOutputStream out)
           throws java.io.IOException
Specified by:
write in interface Message
Throws:
java.io.IOException

dispatch

public void dispatch(ConnectionState state)
              throws java.io.IOException,
                     CoreException
Specified by:
dispatch in interface ClientMessage
Throws:
java.io.IOException
CoreException

getOpCode

public byte getOpCode()
Specified by:
getOpCode in interface Message

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object