Class RequestHeadersType

java.lang.Object
org.citrusframework.model.testcase.http.RequestHeadersType
Direct Known Subclasses:
ServerRequestType.Headers

public class RequestHeadersType extends Object
<p>Java-Klasse für RequestHeadersType complex type.</p> <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.</p> <pre>{@code <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> }</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"> <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> }</pre>
    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"> <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> }</pre>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected String
     
     
     
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Ruft den Wert der accept-Eigenschaft ab.
    Ruft den Wert der contentType-Eigenschaft ab.
    Gets the value of the cookies property.
    Gets the value of the headers property.
    Ruft den Wert der version-Eigenschaft ab.
    void
    Legt den Wert der accept-Eigenschaft fest.
    void
    Legt den Wert der contentType-Eigenschaft fest.
    void
    Legt den Wert der version-Eigenschaft fest.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • RequestHeadersType

      public RequestHeadersType()
  • Method Details

    • 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 Jakarta XML Binding 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 RequestHeadersType.Header

      Returns:
      The value of the headers property.
    • 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 Jakarta XML Binding 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 RequestHeadersType.Cookie

      Returns:
      The value of the cookies property.
    • 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 is String
    • 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 is String
    • getVersion

      public String getVersion()
      Ruft den Wert der version-Eigenschaft ab.
      Returns:
      possible object is String
    • setVersion

      public void setVersion(String value)
      Legt den Wert der version-Eigenschaft fest.
      Parameters:
      value - allowed object is String