Package org.apereo.cas.notifications.sms
Interface SmsSender
-
- All Known Implementing Classes:
GroovySmsSender,RestfulSmsSender
public interface SmsSenderThis isSmsSender.- Since:
- 5.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_NAMEBean name.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default booleancanSend()Whether it can send an SMS.static SmsSendernoOp()No op sms sender.default booleansend(java.lang.String from, java.lang.String to, java.lang.String message)Send sms to phone number.
-
-
-
Field Detail
-
BEAN_NAME
static final java.lang.String BEAN_NAME
Bean name.- See Also:
- Constant Field Values
-
-
Method Detail
-
send
default boolean send(java.lang.String from, java.lang.String to, java.lang.String message)Send sms to phone number.- Parameters:
from- the fromto- the tomessage- the message- Returns:
- true/false
-
canSend
default boolean canSend()
Whether it can send an SMS.- Returns:
- whether it can send an SMS
-
noOp
static SmsSender noOp()
No op sms sender.- Returns:
- the sms sender
-
-