Package com.isode.som.qmgr.objects
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 java.lang.ObjectAbstract class which forms the basis for the other SOM Object classes- Author:
- tc
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringerrortextprotected SomSessionsomSession
-
Constructor Summary
Constructors Constructor Description SomQmgrObject()Create a new empty SomQmgrObjectSomQmgrObject(SomSession session)Create a new empty SomQmgrObject for a particular sessionSomQmgrObject(SomSession session, java.lang.String[] pairs)Create a new SomQmgrObject by parsing a set of key:value pairs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(java.lang.String av)Add an attribute to an objectprotected voidaddAttribute(java.lang.String type, java.lang.String value)voidaddBindListener(SomQmgrBindListener l)Add a listener for Bind responsesprotected voidclearAttributes()protected booleangetBooleanAttributeValue(int type)protected java.lang.DoublegetDoubleAttributeValue(int type)protected java.lang.IntegergetIntegerAttributeValue(int type)SomSessiongetSession()Get the SomSession associated with an objectprotected java.lang.StringgetStringAttributeValue(int type)protected voidnotifyBindListeners(int status)protected voidnotifyListener(SomCommandListener listener, int status, java.lang.String detail)protected voidnotifyListeners(SomCommand command, int status, java.lang.String detail)protected voidparsePairs(java.lang.String[] pairs)voidprint()Debug print functionjava.lang.Stringprint_str()Return debug stringvoidremoveBindListener(SomQmgrBindListener l)Remove a listener for Bind responsesprotected voidsetSkipNotifications(int n)
-
-
-
Field Detail
-
errortext
public java.lang.String errortext
-
somSession
protected SomSession somSession
-
-
Constructor Detail
-
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, java.lang.String[] pairs)
Create a new SomQmgrObject by parsing a set of key:value pairs- Parameters:
session- the SomSession for this objectpairs- key:value pairs to parse
-
-
Method Detail
-
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, java.lang.String detail)
-
notifyListener
protected void notifyListener(SomCommandListener listener, int status, java.lang.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(java.lang.String[] pairs)
-
clearAttributes
protected void clearAttributes()
-
addAttribute
protected void addAttribute(java.lang.String type, java.lang.String value)
-
addAttribute
public void addAttribute(java.lang.String av)
Add an attribute to an object- Parameters:
av- the key:value pair to parse and add
-
getIntegerAttributeValue
protected java.lang.Integer getIntegerAttributeValue(int type) throws SomException- Throws:
SomException
-
getDoubleAttributeValue
protected java.lang.Double getDoubleAttributeValue(int type) throws SomException- Throws:
SomException
-
getStringAttributeValue
protected java.lang.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
-
print_str
public java.lang.String print_str()
Return debug string- Returns:
- debug string
-
setSkipNotifications
protected void setSkipNotifications(int n)
-
-