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. |
static JsonObject |
DEFAULT_MATCH
The default permitted match :
null. |
static String |
DEFAULT_REQUIRED_AUTHORITY
The default permitted required authority :
null. |
| Constructor and Description |
|---|
PermittedOptions()
Creates a new instance of
PermittedOptions. |
PermittedOptions(JsonObject json)
Creates a new instance of
PermittedOptions from its JSON representation. |
PermittedOptions(PermittedOptions that)
Creates a new instance of
PermittedOptions copying the given PermittedOptions. |
| 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
|
JsonObject |
toJson()
Serializes the current instance of
PermittedOptions to JSON. |
public static JsonObject DEFAULT_MATCH
null.public static String DEFAULT_ADDRESS
null.public static String DEFAULT_ADDRESS_REGEX
null.public static String DEFAULT_REQUIRED_AUTHORITY
null.public PermittedOptions()
PermittedOptions.public PermittedOptions(PermittedOptions that)
PermittedOptions copying the given PermittedOptions.that - the PermittedOptions to copypublic PermittedOptions(JsonObject json)
PermittedOptions from its JSON representation.
This method uses the generated converter.json - the serialized PermittedOptionstoJson(),
PermittedOptionsConverterpublic JsonObject toJson()
PermittedOptions to JSON. This method uses the generated converter.PermittedOptionsConverterpublic 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 JsonObject getMatch()
public PermittedOptions setMatch(JsonObject match)
match - the match json objectpublic String getRequiredAuthority()
public PermittedOptions setRequiredAuthority(String requiredAuthority)
requiredAuthority - the authorityCopyright © 2022 Eclipse. All rights reserved.