|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.message.SOCMessage soc.message.SOCJoin
public class SOCJoin
This message means that someone is joining a channel
Once the client has successfully joined or created a channel or game, the password field can be left blank in later join/create requests. All server versions ignore the password field after a successful request.
Field Summary | |
---|---|
private java.lang.String |
channel
Name of channel |
private java.lang.String |
host
Server host name to which the client is connecting. |
private java.lang.String |
nickname
Nickname of the joining member |
private static java.lang.String |
NULLPASS
symbol to represent a null or empty password over the network, to avoid 2 adjacent field-delimiter characters |
private java.lang.String |
password
Optional password, or "" if none |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
SOCJoin(java.lang.String nn,
java.lang.String pw,
java.lang.String hn,
java.lang.String ch)
Create a Join Channel message. |
Method Summary | |
---|---|
java.lang.String |
getChannel()
|
java.lang.String |
getHost()
Get the server host name to which the client is connecting. |
java.lang.String |
getNickname()
|
java.lang.String |
getPassword()
|
static SOCJoin |
parseDataStr(java.lang.String s)
Parse the command String into a Join Channel message. |
java.lang.String |
toCmd()
JOIN sep nickname sep2 password sep2 host sep2 channel |
static java.lang.String |
toCmd(java.lang.String nn,
java.lang.String pw,
java.lang.String hn,
java.lang.String ch)
JOIN sep nickname sep2 password sep2 host sep2 channel |
java.lang.String |
toString()
Simple human-readable representation, used for debug purposes. |
Methods inherited from class soc.message.SOCMessage |
---|
arrayIntoStringBuf, enumIntoStringBuf, getClassNameShort, getMaximumVersion, getMinimumVersion, getType, isSingleLineAndSafe, isSingleLineAndSafe, toMsg |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static java.lang.String NULLPASS
private java.lang.String nickname
private java.lang.String password
private java.lang.String channel
private java.lang.String host
Constructor Detail |
---|
public SOCJoin(java.lang.String nn, java.lang.String pw, java.lang.String hn, java.lang.String ch)
nn
- nicknamepw
- optional password, or "" if nonehn
- server host namech
- name of chat channelMethod Detail |
---|
public java.lang.String getNickname()
public java.lang.String getPassword()
public java.lang.String getHost()
public java.lang.String getChannel()
public java.lang.String toCmd()
toCmd
in class SOCMessage
public static java.lang.String toCmd(java.lang.String nn, java.lang.String pw, java.lang.String hn, java.lang.String ch)
nn
- the nicknamepw
- the optional password, or "" if nonehn
- the server host namech
- the channel name
public static SOCJoin parseDataStr(java.lang.String s)
s
- the String to parse
public java.lang.String toString()
SOCMessage
toString
in class SOCMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |