## Attributes (2)

- redirect - If this is true then a redirect will be done instead of a rewrite

  Type | BOOLEAN
  Default Value | false
  Is the attribute nillable? | true
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | all-services
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "BOOLEAN"
          },
          "description" : "If this is true then a redirect will be done instead of a rewrite",
          "expressions-allowed" : true,
          "required" : false,
          "nillable" : true,
          "default" : false,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "all-services",
          "capability-reference" : null
      }

- target - The expression that defines the target. If you are redirecting to a constant target put single quotes around the value

  Type | STRING
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | all-services
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "STRING"
          },
          "description" : "The expression that defines the target. If you are redirecting to a constant target put single quotes around the value",
          "expressions-allowed" : true,
          "required" : true,
          "nillable" : false,
          "min-length" : 1,
          "max-length" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "all-services",
          "capability-reference" : null
      }

## Operations (2)

- add - Add a rewrite filter

  Request Parameter | Type | Required | Expressions Allowed | Default value | Description
  --- | --- | --- | --- | --- | ---
  redirect | BOOLEAN | false | true | false | If this is true then a redirect will be done instead of a rewrite
  target | STRING | true | true |  | The expression that defines the target. If you are redirecting to a constant target put single quotes around the value

  Raw DMR model |
      {
          "operation-name" : "add",
          "description" : "Add a rewrite filter",
          "request-properties" : {
              "redirect" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "BOOLEAN"
                  },
                  "description" : "If this is true then a redirect will be done instead of a rewrite",
                  "expressions-allowed" : true,
                  "required" : false,
                  "nillable" : true,
                  "default" : false,
                  "stability" : "default"
              },
              "target" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "STRING"
                  },
                  "description" : "The expression that defines the target. If you are redirecting to a constant target put single quotes around the value",
                  "expressions-allowed" : true,
                  "required" : true,
                  "nillable" : false,
                  "min-length" : 1,
                  "max-length" : 2147483647,
                  "stability" : "default"
              }
          },
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "restart-required" : "resource-services",
          "runtime-only" : false
      }

- remove - Remove rewrite filter

  Raw DMR model |
      {
          "operation-name" : "remove",
          "description" : "Remove rewrite filter",
          "request-properties" : {},
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "restart-required" : "resource-services",
          "runtime-only" : false
      }

## Galleon Features

Galleon features are to be used when creating Galleon feature-packs.

- subsystem.undertow.configuration.filter.rewrite

      <feature spec="subsystem.undertow.configuration.filter.rewrite">
        <param name="rewrite" value="{resource name}"/>
        <param name="redirect" value="{value}"/>
        <param name="target" value="{value}"/>
      <feature/>