|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.wilko.jaim.TocResponse | +--com.wilko.jaim.ConfigTocResponse
A ConfigTocResponse contains the config message received from
the toc server.
This response is handled by the JaimConnection class, but may also be used by client programs.
Once this event has been received, information returned from JaimConnection.getGroups()
is valid
Field Summary | |
static int |
DENY_ALL
Value for mode that indicates DENY ALL mode |
static int |
DENY_SOME
Value for mode that indicates DENY SOME mode |
static int |
PERMIT_ALL
Value for mode that indicates PERMIT ALL mode |
static int |
PERMIT_SOME
Value for mode that indicates PERMIT SOME mode |
static java.lang.String |
RESPONSE_TYPE
|
Fields inherited from class com.wilko.jaim.TocResponse |
cmd |
Constructor Summary | |
ConfigTocResponse()
|
Method Summary | |
boolean |
canHandle(java.lang.String Response)
Returns true if this response handler can handle the specified response. |
java.util.Enumeration |
enumerateGroups()
Returns an Enumeration of groups. |
java.util.Collection |
getGroups()
Returns a Collection of groups. |
int |
getMode()
Gets the mode for this configuration |
java.lang.String |
getResponseType()
Get the response type of this response. |
TocResponse |
parseString(java.lang.String message)
Parses the config string. |
void |
setMode(int modeVal)
Sets the mode for this configuration |
Methods inherited from class com.wilko.jaim.TocResponse |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.String RESPONSE_TYPE
public static final int PERMIT_ALL
public static final int DENY_ALL
public static final int PERMIT_SOME
public static final int DENY_SOME
Constructor Detail |
public ConfigTocResponse()
Method Detail |
public java.util.Enumeration enumerateGroups()
Group
Each group then has an Enumeration of buddies within that group See Group.enumerateBuddies()
.
public java.util.Collection getGroups()
public java.lang.String getResponseType()
getResponseType
in class TocResponse
public TocResponse parseString(java.lang.String message)
parseString
in interface TocResponseHandler
message
- - the response from the TOC server. This is the full TOC response string
public void setMode(int modeVal)
modeVal
- the string value of the mode (1-4)public int getMode()
public boolean canHandle(java.lang.String Response)
canHandle
in interface TocResponseHandler
Response
- - the response string from TOC. This is the part of the response before the first ':'
|
jaimlib.sourceforge.net | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |