Class SomCommandStringBuffer


  • public class SomCommandStringBuffer
    extends java.lang.Object
    Utility class for safe SOM command string generation
    Author:
    mst
    • Constructor Summary

      Constructors 
      Constructor Description
      SomCommandStringBuffer​(java.lang.String command)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void appendArgument​(java.lang.String name, java.lang.String value)
      Append command String argument - if argument name is not specified than just vale us added as an argument (like many main command arguments)
      java.lang.String toString()
      Return current StringBuffer content
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SomCommandStringBuffer

        public SomCommandStringBuffer​(java.lang.String command)
        Constructor
        Parameters:
        command - SOM command protocol identifier (like "RESUBMIT" for message resubmission command)
    • Method Detail

      • appendArgument

        public void appendArgument​(java.lang.String name,
                                   java.lang.String value)
        Append command String argument - if argument name is not specified than just vale us added as an argument (like many main command arguments)
        Parameters:
        name - optiona argument identifier/name (it can be null)
        value - argument value (if it is null than argument is ignored)
      • toString

        public java.lang.String toString()
        Return current StringBuffer content
        Overrides:
        toString in class java.lang.Object