Class 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>
     
    • Constructor Detail

      • RequestHeadersType

        public RequestHeadersType()
    • 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 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

      • 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 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

      • 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