public class Replacer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
addRule(java.lang.String description,
java.lang.String enabled,
java.lang.String matchtype,
java.lang.String matchregex,
java.lang.String matchstring,
java.lang.String replacement,
java.lang.String initiators)
Adds a replacer rule.
|
ApiResponse |
removeRule(java.lang.String description)
Removes the rule with the given description
|
ApiResponse |
rules()
Returns full details of all of the rules
|
ApiResponse |
setEnabled(java.lang.String description,
java.lang.String bool)
Enables or disables the rule with the given description based on the bool parameter
|
public Replacer(ClientApi api)
public ApiResponse rules() throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse addRule(java.lang.String description, java.lang.String enabled, java.lang.String matchtype, java.lang.String matchregex, java.lang.String matchstring, java.lang.String replacement, java.lang.String initiators) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse removeRule(java.lang.String description) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiExceptionpublic ApiResponse setEnabled(java.lang.String description, java.lang.String bool) throws ClientApiException
This component is optional and therefore the API will only work if it is installed
ClientApiException