01: package com.canoo.webtest.engine;
02:
03: /**
04: * Abstraction for Http Headers with name and value.
05: *
06: * @author Dierk König
07: * @webtest.nested
08: * category="General"
09: * name="header"
10: * description="Specify http headers by name and value"
11: */
12: public class Header extends NameValuePair {
13: /**
14: * @webtest.parameter required="yes"
15: * description="The name of the HTTP header as defined by the HTTP spec., e.g. <example>User-Agent</example>, <example>Accept-Language</example> or <example>Cookie</example>."
16: */
17: public void setName(String name) {
18: super .setName(name);
19: }
20:
21: /**
22: * @webtest.parameter required="yes"
23: * description="The header value. Range and format are restricted by the HTTP spec., e.g. <example>Mozilla/4.0</example>, <example>de-ch</example> or <example>cookieName=cookieValue</example>"
24: */
25: public void setValue(String value) {
26: super.setValue(value);
27: }
28: }
|