Rule - IBM WebSphere XS40 Command Reference Manual

Datapower xml security gateway
Table of Contents

Advertisement

Parameters
encode
decode
Examples
v Enters MTOM policy configuration mode to create the mtom1 MTOM policy and

rule

Defines an MTOM policy rule.
Syntax
rule XPath [type] [ID]
Parameters
XPath Defines the XPath expression that describes which message element to
type
ID
Examples
v Enters MTOM policy configuration mode to create the mtom1 MTOM policy and
v Enters MTOM policy configuration mode to create the mtom1 MTOM policy.
434
Command Reference
Optimizes an input message.
Extracts the attachment parts on an optimized message, which
reconstitutes the original, non-optimized message.
sets the optimization mode to enable.
# mtom mtom1
MTOM policy configuration mode
# mode enable
#
optimize. A single XPath expression can be used to select one or more
elements.
Specifies the Content Type for the extracted data elements. This option
overrides the value that is attained from the xmlmime:contentType attribute.
If the provided XPath matches more than one element, each corresponding
MIME attachment part will contain a content-type header with this value.
If different content-type values are required, selective XPath expressions
are required.
If not explicitly configured, content identifiers are automatically generated.
Using this option allows for the explicit configuration of content-id headers
and associated href values. Rules that match multiple data elements result
in one attachment part for all matched elements. The resulting attachment
part will contain data from the last match only.
sets the XPath to myelement.
# mtom mtom1
MTOM policy configuration mode
# rule "myelement"
#
Defines the rule that sets the XPath to myelement, the content type to image/png,
and the content ID to example.org/dp.
# mtom mtom1
MTOM policy configuration mode
# rule "myelement" "image/png" "http://example.org/dp"
#

Advertisement

Table of Contents
loading

Table of Contents