public class PermittedOptions extends Object
BridgeOptions.| 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. |
static JsonObject |
DEFAULT_MATCH
The default permitted match :
null. |
static String |
DEFAULT_REQUIRED_AUTHORITY
The default permitted required authority :
null. |
| Constructor and Description |
|---|
PermittedOptions() |
PermittedOptions(JsonObject json) |
PermittedOptions(PermittedOptions that) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress() |
String |
getAddressRegex() |
JsonObject |
getMatch() |
String |
getRequiredAuthority() |
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.
|
PermittedOptions |
setMatch(JsonObject match)
This allows you to allow messages based on their structure.
|
PermittedOptions |
setRequiredAuthority(String requiredAuthority)
Declare a specific authority that user must have in order to allow messages
|
public static String DEFAULT_ADDRESS
null.public static String DEFAULT_ADDRESS_REGEX
null.public static String DEFAULT_REQUIRED_AUTHORITY
null.public static JsonObject DEFAULT_MATCH
null.public PermittedOptions()
public PermittedOptions(PermittedOptions that)
public PermittedOptions(JsonObject json)
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 regexpublic String getRequiredAuthority()
public PermittedOptions setRequiredAuthority(String requiredAuthority)
requiredAuthority - the authoritypublic JsonObject getMatch()
public PermittedOptions setMatch(JsonObject match)
match - the match json objectCopyright © 2015. All rights reserved.