Package com.isode.som
Class SomQueuedHandler
- java.lang.Object
-
- com.isode.som.SomQueuedHandler
-
public class SomQueuedHandler extends java.lang.Object
Class which models a command handler object; these are queued up when a command string is sent off and are then used to handler the resulting response.- Author:
- tc
-
-
Constructor Summary
Constructors Constructor Description SomQueuedHandler(SomCommand opcmd, java.lang.String optag)
Create a new SomQueuedHandler object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cache(java.lang.String commandData, byte[] rdata, int status)
java.lang.String
cachedCommandData()
byte[]
cachedData()
int
cachedStatus()
int
compareTag(java.lang.String newtag)
Compare the tag of this queued handler with an arbitrary valueSomCommand
getCommand()
Get the SomCommand object
-
-
-
Constructor Detail
-
SomQueuedHandler
public SomQueuedHandler(SomCommand opcmd, java.lang.String optag)
Create a new SomQueuedHandler object.- Parameters:
opcmd
- SomCommand object to which handler relatesoptag
- The tag used for the command when sent
-
-
Method Detail
-
getCommand
public SomCommand getCommand()
Get the SomCommand object- Returns:
- SomCommand
-
compareTag
public int compareTag(java.lang.String newtag)
Compare the tag of this queued handler with an arbitrary value- Parameters:
newtag
- tag to compare with- Returns:
- value as for String.compare().
-
cachedCommandData
public java.lang.String cachedCommandData()
-
cachedStatus
public int cachedStatus()
-
cachedData
public byte[] cachedData()
-
cache
public void cache(java.lang.String commandData, byte[] rdata, int status)
-
-