Class SomQmgrObject

java.lang.Object
com.isode.som.qmgr.objects.SomQmgrObject
Direct Known Subclasses:
SomQmgrAssociation, SomQmgrChannel, SomQmgrInboundMessage, SomQmgrMessage, SomQmgrMta, SomQmgrQueueManager, SomQmgrRecipient, SomQmgrSchedule

public abstract class SomQmgrObject extends Object
Abstract class which forms the basis for the other SOM Object classes
Author:
tc
  • Field Details

    • errortext

      public String errortext
    • somSession

      protected SomSession somSession
  • Constructor Details

    • SomQmgrObject

      public SomQmgrObject()
      Create a new empty SomQmgrObject
    • SomQmgrObject

      public SomQmgrObject(SomSession session)
      Create a new empty SomQmgrObject for a particular session
      Parameters:
      session - the SomSession for this object
    • SomQmgrObject

      public SomQmgrObject(SomSession session, String[] pairs)
      Create a new SomQmgrObject by parsing a set of key:value pairs
      Parameters:
      session - the SomSession for this object
      pairs - key:value pairs to parse
  • Method Details

    • getSession

      public SomSession getSession()
      Get the SomSession associated with an object
      Returns:
      the SomSession for this object
    • notifyListeners

      protected void notifyListeners(SomCommand command, int status, String detail)
    • notifyListener

      protected void notifyListener(SomCommandListener listener, int status, String detail)
    • addBindListener

      public void addBindListener(SomQmgrBindListener l)
      Add a listener for Bind responses
      Parameters:
      l - the listener to add
    • removeBindListener

      public void removeBindListener(SomQmgrBindListener l)
      Remove a listener for Bind responses
      Parameters:
      l - the listener to remove
    • notifyBindListeners

      protected void notifyBindListeners(int status)
    • parsePairs

      protected void parsePairs(String[] pairs)
    • clearAttributes

      protected void clearAttributes()
    • addAttribute

      protected void addAttribute(String type, String value)
    • addAttribute

      public void addAttribute(String av)
      Add an attribute to an object
      Parameters:
      av - the key:value pair to parse and add
    • getIntegerAttributeValue

      protected Integer getIntegerAttributeValue(int type) throws SomException
      Throws:
      SomException
    • getDoubleAttributeValue

      protected Double getDoubleAttributeValue(int type) throws SomException
      Throws:
      SomException
    • getStringAttributeValue

      protected String getStringAttributeValue(int type) throws SomException
      Throws:
      SomException
    • getBooleanAttributeValue

      protected boolean getBooleanAttributeValue(int type) throws SomException
      Throws:
      SomException
    • print

      public void print()
      Debug print function
    • setSkipNotifications

      protected void setSkipNotifications(int n)