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
Abstract class which forms the basis for the other SOM Object classes
- Author:
- tc
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new empty SomQmgrObjectSomQmgrObject(SomSession session) Create a new empty SomQmgrObject for a particular sessionSomQmgrObject(SomSession session, String[] pairs) Create a new SomQmgrObject by parsing a set of key:value pairs -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String av) Add an attribute to an objectprotected voidaddAttribute(String type, String value) voidAdd a listener for Bind responsesprotected voidprotected booleangetBooleanAttributeValue(int type) protected DoublegetDoubleAttributeValue(int type) protected IntegergetIntegerAttributeValue(int type) Get the SomSession associated with an objectprotected StringgetStringAttributeValue(int type) protected voidnotifyBindListeners(int status) protected voidnotifyListener(SomCommandListener listener, int status, String detail) protected voidnotifyListeners(SomCommand command, int status, String detail) protected voidparsePairs(String[] pairs) voidprint()Debug print functionReturn debug stringvoidRemove a listener for Bind responsesprotected voidsetSkipNotifications(int n)
-
Field Details
-
errortext
-
somSession
-
-
Constructor Details
-
SomQmgrObject
public SomQmgrObject()Create a new empty SomQmgrObject -
SomQmgrObject
Create a new empty SomQmgrObject for a particular session- Parameters:
session- the SomSession for this object
-
SomQmgrObject
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 Details
-
getSession
Get the SomSession associated with an object- Returns:
- the SomSession for this object
-
notifyListeners
-
notifyListener
-
addBindListener
Add a listener for Bind responses- Parameters:
l- the listener to add
-
removeBindListener
Remove a listener for Bind responses- Parameters:
l- the listener to remove
-
notifyBindListeners
protected void notifyBindListeners(int status) -
parsePairs
-
clearAttributes
protected void clearAttributes() -
addAttribute
-
addAttribute
Add an attribute to an object- Parameters:
av- the key:value pair to parse and add
-
getIntegerAttributeValue
- Throws:
SomException
-
getDoubleAttributeValue
- Throws:
SomException
-
getStringAttributeValue
- Throws:
SomException
-
getBooleanAttributeValue
- Throws:
SomException
-
print
public void print()Debug print function -
print_str
Return debug string- Returns:
- debug string
-
setSkipNotifications
protected void setSkipNotifications(int n)
-