Package com.isode.som
Class SomQueuedHandler
java.lang.Object
com.isode.som.SomQueuedHandler
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
ConstructorsConstructorDescriptionSomQueuedHandler(SomCommand opcmd, String optag) Create a new SomQueuedHandler object. -
Method Summary
Modifier and TypeMethodDescriptionvoidbyte[]intintcompareTag(String newtag) Compare the tag of this queued handler with an arbitrary valueGet the SomCommand object
-
Constructor Details
-
SomQueuedHandler
Create a new SomQueuedHandler object.- Parameters:
opcmd- SomCommand object to which handler relatesoptag- The tag used for the command when sent
-
-
Method Details
-
getCommand
Get the SomCommand object- Returns:
- SomCommand
-
compareTag
Compare the tag of this queued handler with an arbitrary value- Parameters:
newtag- tag to compare with- Returns:
- value as for String.compare().
-
cachedCommandData
-
cachedStatus
public int cachedStatus() -
cachedData
public byte[] cachedData() -
cache
-