Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Request Manager > Predefined Dynamic Components > Predefined Request Selectors > The Test Header Match Request Selector
  
The Test Header Match Request Selector
The Test Header Match request selector is implemented by the com.arbortext.e3.TestHeaderMatch class. It evaluates an HTTP request and returns true if the request includes an HTTP header with a specific value. It accepts two parameters, header-name, which specifies the name of the HTTP header to test and header-pattern, which specifies a pattern that the HTTP header value must match.
The Test Header Match request selector accepts standard Java patterns for its header-pattern parameter. So, for example patterns like text/* or text/??? would both match a header value of text/xml. You can specify a Java pattern without wildcards, so specifying a pattern like text/html would test for a header value equal to text/html.