Package com.isode.som

Class SomQueuedHandler

java.lang.Object
com.isode.som.SomQueuedHandler

public class SomQueuedHandler extends 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 Details

    • SomQueuedHandler

      public SomQueuedHandler(SomCommand opcmd, String optag)
      Create a new SomQueuedHandler object.
      Parameters:
      opcmd - SomCommand object to which handler relates
      optag - The tag used for the command when sent
  • Method Details

    • getCommand

      public SomCommand getCommand()
      Get the SomCommand object
      Returns:
      SomCommand
    • compareTag

      public int compareTag(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 String cachedCommandData()
    • cachedStatus

      public int cachedStatus()
    • cachedData

      public byte[] cachedData()
    • cache

      public void cache(String commandData, byte[] rdata, int status)