Class ServerRequestType
- java.lang.Object
-
- com.consol.citrus.model.testcase.http.ServerRequestType
-
public class ServerRequestType extends Object
Http request type with parameters, headers and body.Java-Klasse für ServerRequestType complex type.
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
<complexType name="ServerRequestType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{http://www.citrusframework.org/schema/http/testcase}description" minOccurs="0"/> <element name="param" type="{http://www.citrusframework.org/schema/http/testcase}ParamType" maxOccurs="unbounded" minOccurs="0"/> <element name="headers" minOccurs="0"> <complexType> <complexContent> <extension base="{http://www.citrusframework.org/schema/http/testcase}RequestHeadersType"> <attribute name="ignore-case" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </complexContent> </complexType> </element> <element name="body" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice minOccurs="0"> <element name="payload"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <any processContents='skip' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="data" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="resource"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="file" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="charset" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </element> </choice> <element name="validate" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="script" minOccurs="0"> <complexType> <simpleContent> <extension base="<http://www.w3.org/2001/XMLSchema>string"> <attribute name="type" use="required"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="groovy"/> </restriction> </simpleType> </attribute> <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </simpleContent> </complexType> </element> <element name="xpath" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="expression" 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="result-type"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="node"/> <enumeration value="node-set"/> <enumeration value="boolean"/> <enumeration value="string"/> <enumeration value="number"/> </restriction> </simpleType> </attribute> </restriction> </complexContent> </complexType> </element> <element name="json-path" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="expression" 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> <element name="namespace" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="prefix" 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="path" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="result-type"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="node"/> <enumeration value="node-set"/> <enumeration value="boolean"/> <enumeration value="string"/> <enumeration value="number"/> </restriction> </simpleType> </attribute> </restriction> </complexContent> </complexType> </element> </sequence> <attribute name="schema-validation" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="schema-repository" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="validator" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="data-dictionary" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="xml" /> </restriction> </complexContent> </complexType> </element> </sequence> <attribute name="path" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="context-path" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerRequestType.Body
Java-Klasse für anonymous complex type.static class
ServerRequestType.Headers
Java-Klasse für anonymous complex type.
-
Field Summary
Fields Modifier and Type Field Description protected ServerRequestType.Body
body
protected String
contextPath
protected String
description
protected ServerRequestType.Headers
headers
protected List<ParamType>
params
protected String
path
-
Constructor Summary
Constructors Constructor Description ServerRequestType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerRequestType.Body
getBody()
Ruft den Wert der body-Eigenschaft ab.String
getContextPath()
Ruft den Wert der contextPath-Eigenschaft ab.String
getDescription()
Ruft den Wert der description-Eigenschaft ab.ServerRequestType.Headers
getHeaders()
Ruft den Wert der headers-Eigenschaft ab.List<ParamType>
getParams()
Gets the value of the params property.String
getPath()
Ruft den Wert der path-Eigenschaft ab.void
setBody(ServerRequestType.Body value)
Legt den Wert der body-Eigenschaft fest.void
setContextPath(String value)
Legt den Wert der contextPath-Eigenschaft fest.void
setDescription(String value)
Legt den Wert der description-Eigenschaft fest.void
setHeaders(ServerRequestType.Headers value)
Legt den Wert der headers-Eigenschaft fest.void
setPath(String value)
Legt den Wert der path-Eigenschaft fest.
-
-
-
Field Detail
-
description
protected String description
-
headers
protected ServerRequestType.Headers headers
-
body
protected ServerRequestType.Body body
-
path
protected String path
-
contextPath
protected String contextPath
-
-
Method Detail
-
getDescription
public String getDescription()
Ruft den Wert der description-Eigenschaft ab.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Legt den Wert der description-Eigenschaft fest.- Parameters:
value
- allowed object isString
-
getParams
public List<ParamType> getParams()
Gets the value of the params 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 params property.For example, to add a new item, do as follows:
getParams().add(newItem);
Objects of the following type(s) are allowed in the list
ParamType
-
getHeaders
public ServerRequestType.Headers getHeaders()
Ruft den Wert der headers-Eigenschaft ab.- Returns:
- possible object is
ServerRequestType.Headers
-
setHeaders
public void setHeaders(ServerRequestType.Headers value)
Legt den Wert der headers-Eigenschaft fest.- Parameters:
value
- allowed object isServerRequestType.Headers
-
getBody
public ServerRequestType.Body getBody()
Ruft den Wert der body-Eigenschaft ab.- Returns:
- possible object is
ServerRequestType.Body
-
setBody
public void setBody(ServerRequestType.Body value)
Legt den Wert der body-Eigenschaft fest.- Parameters:
value
- allowed object isServerRequestType.Body
-
getPath
public String getPath()
Ruft den Wert der path-Eigenschaft ab.- Returns:
- possible object is
String
-
setPath
public void setPath(String value)
Legt den Wert der path-Eigenschaft fest.- Parameters:
value
- allowed object isString
-
getContextPath
public String getContextPath()
Ruft den Wert der contextPath-Eigenschaft ab.- Returns:
- possible object is
String
-
-