Citrix Systems 9.2 Benutzerhandbuch

Seite von 302
160
Citrix NetScaler Policy Configuration and Reference Guide
Configuring a Pattern Set
A pattern set contains a name and string patterns. Each string pattern is assigned 
an index that enables you to select the associated string from the set. 
When you configure a pattern set, you can assign index values to the patterns, or 
you can let the NetScaler assign the index values, as follows:
When configuring the first pattern in the pattern set, if you omit an index 
the NetScaler generates an index and issues an error if you specify an index 
value for any additional patterns in the set. 
If you provide an index for the first pattern in the set, you must provide an 
index for all subsequent patterns in the set.
Note:
Pattern sets are case-sensitive.
http header.CONTAINS_INDEX 
(pattern_set_name)
Operates on all the instances of the current header 
type. Evaluates all header values, and returns the 
index of the matching pattern in the pattern set 
name
 argument that is present in any instance of a 
header value. This operations works with the 
following prefixes:
• HTTP.REQ.COOKIE
• HTTP.REQ.HEADER("header_name")
• HTTP.RES.HEADER("header_name")
• HTTP.RES.SET_COOKIE 
• HTTP.RES.SET_COOKIE2
text.EQUALS_INDEX(pattern_
set_name)
Evaluates whether the target is an exact match with 
any of the strings that are bound to pattern_set_
name
If an exact match is found, this operation returns 
the numerical index of the matching string. 
http header.EQUALS_INDEX 
(pattern_set_name)
Operates on all the instances of the current header 
type. Evaluates all header values and returns the 
index of the matching pattern in the pattern set 
name
 argument that is present in any instance of a 
header value. This operations works with the 
following prefixes:
• HTTP.REQ.COOKIE
• HTTP.REQ.HEADER("header_name")
• HTTP.RES.HEADER("header_name")
• HTTP.RES.SET_COOKIE 
• HTTP.RES.SET_COOKIE2
Operators That Compare Text and HTTP Headers With a Pattern Set
Matching Operators
Description