Class RequestHeadersType
- java.lang.Object
-
- com.consol.citrus.model.testcase.http.RequestHeadersType
-
- Direct Known Subclasses:
ServerRequestType.Headers
public class RequestHeadersType extends Object
Java-Klasse für RequestHeadersType complex type.
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
<complexType name="RequestHeadersType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="header" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </element> <element name="cookie" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </element> </sequence> <attribute name="content-type" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="accept" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestHeadersType.CookieJava-Klasse für anonymous complex type.static classRequestHeadersType.HeaderJava-Klasse für anonymous complex type.
-
Field Summary
Fields Modifier and Type Field Description protected Stringacceptprotected StringcontentTypeprotected List<RequestHeadersType.Cookie>cookiesprotected List<RequestHeadersType.Header>headersprotected Stringversion
-
Constructor Summary
Constructors Constructor Description RequestHeadersType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccept()Ruft den Wert der accept-Eigenschaft ab.StringgetContentType()Ruft den Wert der contentType-Eigenschaft ab.List<RequestHeadersType.Cookie>getCookies()Gets the value of the cookies property.List<RequestHeadersType.Header>getHeaders()Gets the value of the headers property.StringgetVersion()Ruft den Wert der version-Eigenschaft ab.voidsetAccept(String value)Legt den Wert der accept-Eigenschaft fest.voidsetContentType(String value)Legt den Wert der contentType-Eigenschaft fest.voidsetVersion(String value)Legt den Wert der version-Eigenschaft fest.
-
-
-
Field Detail
-
headers
protected List<RequestHeadersType.Header> headers
-
cookies
protected List<RequestHeadersType.Cookie> cookies
-
contentType
protected String contentType
-
accept
protected String accept
-
version
protected String version
-
-
Method Detail
-
getHeaders
public List<RequestHeadersType.Header> getHeaders()
Gets the value of the headers property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the headers property.For example, to add a new item, do as follows:
getHeaders().add(newItem);Objects of the following type(s) are allowed in the list
RequestHeadersType.Header
-
getCookies
public List<RequestHeadersType.Cookie> getCookies()
Gets the value of the cookies property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the cookies property.For example, to add a new item, do as follows:
getCookies().add(newItem);Objects of the following type(s) are allowed in the list
RequestHeadersType.Cookie
-
getContentType
public String getContentType()
Ruft den Wert der contentType-Eigenschaft ab.- Returns:
- possible object is
String
-
setContentType
public void setContentType(String value)
Legt den Wert der contentType-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getAccept
public String getAccept()
Ruft den Wert der accept-Eigenschaft ab.- Returns:
- possible object is
String
-
setAccept
public void setAccept(String value)
Legt den Wert der accept-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getVersion
public String getVersion()
Ruft den Wert der version-Eigenschaft ab.- Returns:
- possible object is
String
-
-