public enum SmppCommandType extends Enum<SmppCommandType>
Enum Constant and Description |
---|
CANCEL_SM |
DATA_SHORT_MESSAGE |
QUERY_SM |
REPLACE_SM |
SUBMIT_MULTI |
SUBMIT_SM |
Modifier and Type | Method and Description |
---|---|
abstract SmppCommand |
createCommand(org.jsmpp.session.SMPPSession session,
SmppConfiguration config) |
static SmppCommandType |
fromExchange(org.apache.camel.Exchange exchange)
Tries to return an instance of
SmppCommandType using
SmppConstants.COMMAND header of the incoming message. |
String |
getCommandName() |
static SmppCommandType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SmppCommandType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmppCommandType SUBMIT_SM
public static final SmppCommandType REPLACE_SM
public static final SmppCommandType QUERY_SM
public static final SmppCommandType SUBMIT_MULTI
public static final SmppCommandType CANCEL_SM
public static final SmppCommandType DATA_SHORT_MESSAGE
public static SmppCommandType[] values()
for (SmppCommandType c : SmppCommandType.values()) System.out.println(c);
public static SmppCommandType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getCommandName()
public abstract SmppCommand createCommand(org.jsmpp.session.SMPPSession session, SmppConfiguration config)
public static SmppCommandType fromExchange(org.apache.camel.Exchange exchange)
SmppCommandType
using
SmppConstants.COMMAND
header of the incoming message.
Returns SUBMIT_SM
if there is no SmppConstants.COMMAND
header in the incoming message or value of such a header cannot be
recognized.
The valid values for the SmppConstants.COMMAND
header are: SubmitSm ReplaceSm, QuerySm, SubmitMulti, CancelSm, DataSm.exchange
- an exchange to get an incoming message fromSmppCommandType
Apache Camel