org.apache.tomcat.util.test.matchers
Class HeaderMatch

java.lang.Object
  extended byorg.apache.tomcat.util.test.Matcher
      extended byorg.apache.tomcat.util.test.matchers.HeaderMatch

public class HeaderMatch
extends Matcher

Check if the response has ( or has not ) some headers


Field Summary
 
Fields inherited from class org.apache.tomcat.util.test.Matcher
client, debug, magnitude, request, response, result
 
Constructor Summary
HeaderMatch()
           
 
Method Summary
 void addHeader(Header rh)
           
 void execute()
          Execute the test
 java.util.Hashtable getExpectHeaders()
           
 java.lang.String getTestDescription()
          Test description ( text representation of the test )
 void setExpectHeaders(java.lang.String s)
          Verify that response includes the expected headers.
 void setName(java.lang.String n)
           
 void setValue(java.lang.String v)
           
 
Methods inherited from class org.apache.tomcat.util.test.Matcher
getHttpClient, getHttpRequest, getHttpResponse, getMessage, getResult, log, setDebug, setExpectedResult, setHttpClient, setHttpRequest, setHttpResponse, setIf, setMagnitude, setUnless, skipTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderMatch

public HeaderMatch()
Method Detail

setName

public void setName(java.lang.String n)

setValue

public void setValue(java.lang.String v)

addHeader

public void addHeader(Header rh)

setExpectHeaders

public void setExpectHeaders(java.lang.String s)
Verify that response includes the expected headers. The value is a "|" separated list of headers to expect. ?? Do we need that ?


getExpectHeaders

public java.util.Hashtable getExpectHeaders()

getTestDescription

public java.lang.String getTestDescription()
Description copied from class: Matcher
Test description ( text representation of the test )

Overrides:
getTestDescription in class Matcher

execute

public void execute()
Description copied from class: Matcher
Execute the test

Overrides:
execute in class Matcher


Copyright ? 2001 Apache Software Foundation. All Rights Reserved.