Package com.isode.som.qmgr
Class SomQmgrSelector
java.lang.Object
com.isode.som.qmgr.SomQmgrSelector
Class which implements the Selector object which is used to select particular
Channel/MTA/Message combinations when performing various SOM commands.
- Author:
- tc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChannelName(String value) Add a channel name specification to a SelectorvoidaddChannelRegexp(String value) Add a channel name regular expression specification to a SelectorvoidaddMessageName(String value) Add a message name (queueid) specification to a SelectorvoidaddMessageRegexp(String value) Add a message id (queueid) regular expression specification to a SelectorvoidaddMtaName(String value) Add an MTA name specification to a SelectorvoidaddMtaRegexp(String value) Add an MTA name regular expression specification to a SelectorvoidAdd an arbitrary attribute specification to a selectorvoidaddRecipientNumber(Integer value) Add a recipient number specification to a SelectorvoidaddSizeLimit(Integer value) Add a sizelimit constraint to a Selectorprint(int context) Generate the string representation of the Selector, for use in a command
-
Constructor Details
-
SomQmgrSelector
public SomQmgrSelector()Create a new empty Selector object
-
-
Method Details
-
addSizeLimit
Add a sizelimit constraint to a Selector- Parameters:
value- sizelimit value in bytes
-
addChannelName
Add a channel name specification to a Selector- Parameters:
value- channel name which may not be null
-
addMtaName
Add an MTA name specification to a Selector- Parameters:
value- MTA name which may not be null
-
addMessageName
Add a message name (queueid) specification to a Selector- Parameters:
value- Message name which may not be null
-
addRecipientNumber
Add a recipient number specification to a Selector- Parameters:
value- Recipient number
-
addChannelRegexp
Add a channel name regular expression specification to a Selector- Parameters:
value- channel name regexp which may not be null
-
addMtaRegexp
Add an MTA name regular expression specification to a Selector- Parameters:
value- MTA name regexp which may not be null
-
addMessageRegexp
Add a message id (queueid) regular expression specification to a Selector- Parameters:
value- message name regexp which may not be null
-
addParam
Add an arbitrary attribute specification to a selector- Parameters:
type- Attribute type name which may not be nullvalue- Attribute value which may not be null
-
print
Generate the string representation of the Selector, for use in a command- Parameters:
context- Context in which to print the Selector- Returns:
- String representation of Selector
- Throws:
SomException- on error
-