Class ResponseHeadersType
- java.lang.Object
-
- com.consol.citrus.model.testcase.http.ResponseHeadersType
-
- Direct Known Subclasses:
ReceiveResponseModel.Headers
public class ResponseHeadersType extends Object
Java-Klasse für ResponseHeadersType complex type.
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
<complexType name="ResponseHeadersType"> <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" /> <attribute name="max-age" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="path" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="domain" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="secure" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType> </element> </sequence> <attribute name="status" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="reason-phrase" 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 class
ResponseHeadersType.Cookie
Java-Klasse für anonymous complex type.static class
ResponseHeadersType.Header
Java-Klasse für anonymous complex type.
-
Field Summary
Fields Modifier and Type Field Description protected List<ResponseHeadersType.Cookie>
cookies
protected List<ResponseHeadersType.Header>
headers
protected String
reasonPhrase
protected String
status
protected String
version
-
Constructor Summary
Constructors Constructor Description ResponseHeadersType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseHeadersType.Cookie>
getCookies()
Gets the value of the cookies property.List<ResponseHeadersType.Header>
getHeaders()
Gets the value of the headers property.String
getReasonPhrase()
Ruft den Wert der reasonPhrase-Eigenschaft ab.String
getStatus()
Ruft den Wert der status-Eigenschaft ab.String
getVersion()
Ruft den Wert der version-Eigenschaft ab.void
setReasonPhrase(String value)
Legt den Wert der reasonPhrase-Eigenschaft fest.void
setStatus(String value)
Legt den Wert der status-Eigenschaft fest.void
setVersion(String value)
Legt den Wert der version-Eigenschaft fest.
-
-
-
Field Detail
-
headers
protected List<ResponseHeadersType.Header> headers
-
cookies
protected List<ResponseHeadersType.Cookie> cookies
-
status
protected String status
-
reasonPhrase
protected String reasonPhrase
-
version
protected String version
-
-
Method Detail
-
getHeaders
public List<ResponseHeadersType.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
set
method 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
ResponseHeadersType.Header
-
getCookies
public List<ResponseHeadersType.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
set
method 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
ResponseHeadersType.Cookie
-
getStatus
public String getStatus()
Ruft den Wert der status-Eigenschaft ab.- Returns:
- possible object is
String
-
setStatus
public void setStatus(String value)
Legt den Wert der status-Eigenschaft fest.- Parameters:
value
- allowed object isString
-
getReasonPhrase
public String getReasonPhrase()
Ruft den Wert der reasonPhrase-Eigenschaft ab.- Returns:
- possible object is
String
-
setReasonPhrase
public void setReasonPhrase(String value)
Legt den Wert der reasonPhrase-Eigenschaft fest.- Parameters:
value
- allowed object isString
-
getVersion
public String getVersion()
Ruft den Wert der version-Eigenschaft ab.- Returns:
- possible object is
String
-
-