Class ClientRequestType

java.lang.Object
org.citrusframework.model.testcase.http.ClientRequestType

public class ClientRequestType extends Object
Http request type with parameters, headers and body. <p>Java-Klasse für ClientRequestType complex type.</p> <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.</p> <pre>{@code <complexType name="ClientRequestType"> <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" type="{http://www.citrusframework.org/schema/http/testcase}RequestHeadersType" minOccurs="0"/> <element name="body" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice> <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="element" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="path" 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="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="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="xml" /> <attribute name="data-dictionary" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </element> </sequence> <attribute name="path" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> }</pre>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    <p>Java-Klasse für anonymous complex type.</p> <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.</p> <pre>{@code <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice> <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="element" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="path" 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="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="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="xml" /> <attribute name="data-dictionary" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> }</pre>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected String
     
     
    protected List<ParamType>
     
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Ruft den Wert der body-Eigenschaft ab.
    Ruft den Wert der description-Eigenschaft ab.
    Ruft den Wert der headers-Eigenschaft ab.
    Gets the value of the params property.
    Ruft den Wert der path-Eigenschaft ab.
    void
    Legt den Wert der body-Eigenschaft fest.
    void
    Legt den Wert der description-Eigenschaft fest.
    void
    Legt den Wert der headers-Eigenschaft fest.
    void
    setPath(String value)
    Legt den Wert der path-Eigenschaft fest.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ClientRequestType

      public ClientRequestType()
  • Method Details

    • 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 is String
    • 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 Jakarta XML Binding 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

      Returns:
      The value of the params property.
    • getHeaders

      public RequestHeadersType getHeaders()
      Ruft den Wert der headers-Eigenschaft ab.
      Returns:
      possible object is RequestHeadersType
    • setHeaders

      public void setHeaders(RequestHeadersType value)
      Legt den Wert der headers-Eigenschaft fest.
      Parameters:
      value - allowed object is RequestHeadersType
    • getBody

      public ClientRequestType.Body getBody()
      Ruft den Wert der body-Eigenschaft ab.
      Returns:
      possible object is ClientRequestType.Body
    • setBody

      public void setBody(ClientRequestType.Body value)
      Legt den Wert der body-Eigenschaft fest.
      Parameters:
      value - allowed object is ClientRequestType.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 is String