public class PermittedOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ADDRESS
The default permitted address :
null. |
static String |
DEFAULT_ADDRESS_REGEX
The default permitted address regex :
null. |
| Constructor and Description |
|---|
PermittedOptions() |
PermittedOptions(JsonObject json) |
PermittedOptions(PermittedOptions that) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress() |
String |
getAddressRegex() |
PermittedOptions |
setAddress(String address)
The exact address the message is being sent to.
|
PermittedOptions |
setAddressRegex(String addressRegex)
A regular expression that will be matched against the address.
|
JsonObject |
toJson() |
public static String DEFAULT_ADDRESS
null.public static String DEFAULT_ADDRESS_REGEX
null.public PermittedOptions()
public PermittedOptions(PermittedOptions that)
public PermittedOptions(JsonObject json)
public JsonObject toJson()
public String getAddress()
public PermittedOptions setAddress(String address)
address - the addresspublic String getAddressRegex()
public PermittedOptions setAddressRegex(String addressRegex)
setAddress(java.lang.String) value is specified
this will be ignored.addressRegex - the address regexCopyright © 2015. All rights reserved.