public class TwilioHandler extends BaseRouterHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHTOKEN
Twilio AUTHKEY
|
static java.lang.String |
BASEURL
Twilio BASEURL
|
static java.lang.String |
FROM
Twilio FROM Address
|
static java.lang.String |
SID
Twilio SID
|
BIDICONFIG, PASSWORD, USERNAME
Constructor and Description |
---|
TwilioHandler() |
TwilioHandler(MaxEndPointInfo endPointInfo) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
encode(java.lang.String str) |
static java.lang.String |
encode(java.lang.String userName,
java.lang.String password) |
java.lang.String |
getAuthKey() |
java.lang.String |
getBaseURL() |
byte[] |
getBody(byte[] data) |
java.lang.String |
getFrom() |
java.lang.String |
getHandlerURL() |
java.util.Map |
getHeaders() |
java.util.List<RouterPropsInfo> |
getProperties() |
java.lang.String |
getSID() |
byte[] |
invoke(java.util.Map metaData,
byte[] data)
All directly extending classes should call super.invoke(metaData, data) before proceeding
with the invoke.
|
void |
setTo(java.lang.String phoneSMS) |
public static final java.lang.String FROM
public static final java.lang.String SID
public static final java.lang.String AUTHTOKEN
public static final java.lang.String BASEURL
public TwilioHandler(MaxEndPointInfo endPointInfo)
endPointInfo
- public TwilioHandler()
public void setTo(java.lang.String phoneSMS)
public java.util.List<RouterPropsInfo> getProperties()
public java.lang.String getHandlerURL()
public static java.lang.String encode(java.lang.String userName, java.lang.String password) throws java.lang.Exception
java.lang.Exception
public static java.lang.String encode(java.lang.String str) throws java.lang.Exception
java.lang.Exception
public java.util.Map getHeaders()
public byte[] getBody(byte[] data)
public byte[] invoke(java.util.Map metaData, byte[] data) throws MXException
BaseRouterHandler
invoke
in interface RouterHandler
invoke
in class BaseRouterHandler
MXException
RouterHandler.invoke(java.util.Map, byte[])
public java.lang.String getFrom()
public java.lang.String getAuthKey()
public java.lang.String getSID()
public java.lang.String getBaseURL()