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.Object
Abstract class which forms the basis for the other SOM Object classes- Author:
- tc
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
errortext
protected SomSession
somSession
-
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 void
addAttribute(java.lang.String av)
Add an attribute to an objectprotected void
addAttribute(java.lang.String type, java.lang.String value)
void
addBindListener(SomQmgrBindListener l)
Add a listener for Bind responsesprotected void
clearAttributes()
protected boolean
getBooleanAttributeValue(int type)
protected java.lang.Double
getDoubleAttributeValue(int type)
protected java.lang.Integer
getIntegerAttributeValue(int type)
SomSession
getSession()
Get the SomSession associated with an objectprotected java.lang.String
getStringAttributeValue(int type)
protected void
notifyBindListeners(int status)
protected void
notifyListener(SomCommandListener listener, int status, java.lang.String detail)
protected void
notifyListeners(SomCommand command, int status, java.lang.String detail)
protected void
parsePairs(java.lang.String[] pairs)
void
print()
Debug print functionjava.lang.String
print_str()
Return debug stringvoid
removeBindListener(SomQmgrBindListener l)
Remove a listener for Bind responsesprotected void
setSkipNotifications(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)
-
-