Class Replacer


public class Replacer extends ReplacerDeprecated
This file was automatically generated.
  • Constructor Details

  • Method Details

    • rules

      public ApiResponse rules() throws ClientApiException
      Returns full details of all of the rules

      This component is optional and therefore the API will only work if it is installed

      Throws:
      ClientApiException
    • addRule

      public ApiResponse addRule(String description, String enabled, String matchtype, String matchregex, String matchstring, String replacement, String initiators, String url) throws ClientApiException
      Adds a replacer rule. For the parameters: desc is a user friendly description, enabled is true or false, matchType is one of [REQ_HEADER, REQ_HEADER_STR, REQ_BODY_STR, RESP_HEADER, RESP_HEADER_STR, RESP_BODY_STR], matchRegex should be true if the matchString should be treated as a regex otherwise false, matchString is the string that will be matched against, replacement is the replacement string, initiators may be blank (for all initiators) or a comma separated list of integers as defined in Request Initiator Constants

      This component is optional and therefore the API will only work if it is installed

      Throws:
      ClientApiException
    • removeRule

      public ApiResponse removeRule(String description) throws ClientApiException
      Removes the rule with the given description

      This component is optional and therefore the API will only work if it is installed

      Throws:
      ClientApiException
    • setEnabled

      public ApiResponse setEnabled(String description, String bool) throws ClientApiException
      Enables or disables the rule with the given description based on the bool parameter

      This component is optional and therefore the API will only work if it is installed

      Throws:
      ClientApiException