Overwrite type specifies if RMS should always overwrite the response body or only
if the body is empty. Possible values are: ALWAYS, IF_EMPTY.
The overwrite attribute is optional and defaults to "IF_EMPTY" if not specified.
If this is specified, response body will always be overwritten by response messaging
filter.
If this is specified, response body will be overwritten by response messaging
filter only if response body is empty.
List of status codes, which allow Repose to intercept the response and return
a pre-configured message body.
Describes a status code that will be handled. The actual status code will be captured in
code-regex attribute (can be specified as a regular expression). Please refer to
Java
Regular Expression Api
for more information on regular expression syntax.
Id attribute must be unique.
ID of the status code rewrite. Must be unique.
Defines a regular expression that will be used to match status codes
against this declaration. Please refer to
Java
Regular Expression Api
for more information on regular expression syntax.
Tells Repose what logic to use when determining whether or not to overwrite the response body
from the origin service with the configured message. If the overwrite value is set to
"IF_EMPTY" and the body is not empty Repose will not modify the response body. In all other
cases, Repose will overwrite the response body with the RMS message.
Defines a message that will be used when matching the parent status code.
Can either be linked via href attribute or defined in the message element.
XML messages should be included in CDATA inline.
The message body can contain template parameters that will be replaced by
request/response or other server values when a status code is matched.
The template parameters available for use in the message body are the same
as the parameters used by the Repose HTTP Logging Filter.
Matches the content type of the message coming from the origin service.
Allows different message formats for different response types.
Configuring a media-type of */* will configure that message object as a catch-all.
Defines the content type on the response message returned to the client.
Specifies a location to an external file which contains the message to be sent.
If the message element has a value and the href attribute is configured,
Response Messaging Service will use what is configured with href to send the message.
If the file to which an href attribute of a message element is pointed is modified,
Response Messaging Service will need to reload the configurations to
guarantee that the changes will appear in the responses.
Any changes to the config file itself will cause a configuration reload.