Package com.isode.som.qmgr
Class SomQmgrSelector
- java.lang.Object
-
- com.isode.som.qmgr.SomQmgrSelector
-
public class SomQmgrSelector extends java.lang.Object
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 Constructor Description SomQmgrSelector()
Create a new empty Selector object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChannelName(java.lang.String value)
Add a channel name specification to a Selectorvoid
addChannelRegexp(java.lang.String value)
Add a channel name regular expression specification to a Selectorvoid
addMessageName(java.lang.String value)
Add a message name (queueid) specification to a Selectorvoid
addMessageRegexp(java.lang.String value)
Add a message id (queueid) regular expression specification to a Selectorvoid
addMtaName(java.lang.String value)
Add an MTA name specification to a Selectorvoid
addMtaRegexp(java.lang.String value)
Add an MTA name regular expression specification to a Selectorvoid
addParam(java.lang.String type, java.lang.Integer value)
Add an arbitrary attribute specification to a selectorvoid
addRecipientNumber(java.lang.Integer value)
Add a recipient number specification to a Selectorvoid
addSizeLimit(java.lang.Integer value)
Add a sizelimit constraint to a Selectorjava.lang.String
print(int context)
Generate the string representation of the Selector, for use in a command
-
-
-
Method Detail
-
addSizeLimit
public void addSizeLimit(java.lang.Integer value)
Add a sizelimit constraint to a Selector- Parameters:
value
- sizelimit value in bytes
-
addChannelName
public void addChannelName(java.lang.String value)
Add a channel name specification to a Selector- Parameters:
value
- channel name which may not be null
-
addMtaName
public void addMtaName(java.lang.String value)
Add an MTA name specification to a Selector- Parameters:
value
- MTA name which may not be null
-
addMessageName
public void addMessageName(java.lang.String value)
Add a message name (queueid) specification to a Selector- Parameters:
value
- Message name which may not be null
-
addRecipientNumber
public void addRecipientNumber(java.lang.Integer value)
Add a recipient number specification to a Selector- Parameters:
value
- Recipient number
-
addChannelRegexp
public void addChannelRegexp(java.lang.String value)
Add a channel name regular expression specification to a Selector- Parameters:
value
- channel name regexp which may not be null
-
addMtaRegexp
public void addMtaRegexp(java.lang.String value)
Add an MTA name regular expression specification to a Selector- Parameters:
value
- MTA name regexp which may not be null
-
addMessageRegexp
public void addMessageRegexp(java.lang.String value)
Add a message id (queueid) regular expression specification to a Selector- Parameters:
value
- message name regexp which may not be null
-
addParam
public void addParam(java.lang.String type, java.lang.Integer value)
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
public java.lang.String print(int context) throws SomException
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
-
-