public class DocumentationRequest extends Object
Java class for Request complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Request"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="header" type="{http://restsql.org/schema}Header" maxOccurs="unbounded" minOccurs="0"/> <element name="body" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </sequence> <attribute name="method" use="required"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="DELETE"/> <enumeration value="GET"/> <enumeration value="POST"/> <enumeration value="PUT"/> </restriction> </simpleType> </attribute> <attribute name="uri" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="contentType" type="{http://www.w3.org/2001/XMLSchema}string" default="application/xml" /> <attribute name="accept" type="{http://www.w3.org/2001/XMLSchema}string" default="application/xml" /> <attribute name="user" type="{http://www.w3.org/2001/XMLSchema}string" default="all" /> <attribute name="password" type="{http://www.w3.org/2001/XMLSchema}string" default="all" /> </restriction> </complexContent> </complexType>
Constructor and Description |
---|
DocumentationRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getAccept()
Gets the value of the accept property.
|
String |
getBody()
Gets the value of the body property.
|
String |
getContentType()
Gets the value of the contentType property.
|
List<DocumentationHeader> |
getHeader()
Gets the value of the header property.
|
String |
getMethod()
Gets the value of the method property.
|
String |
getPassword()
Gets the value of the password property.
|
String |
getUri()
Gets the value of the uri property.
|
String |
getUser()
Gets the value of the user property.
|
void |
setAccept(String value)
Sets the value of the accept property.
|
void |
setBody(String value)
Sets the value of the body property.
|
void |
setContentType(String value)
Sets the value of the contentType property.
|
void |
setMethod(String value)
Sets the value of the method property.
|
void |
setPassword(String value)
Sets the value of the password property.
|
void |
setUri(String value)
Sets the value of the uri property.
|
void |
setUser(String value)
Sets the value of the user property.
|
public List<DocumentationHeader> getHeader()
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 header property.
For example, to add a new item, do as follows:
getHeader().add(newItem);
Objects of the following type(s) are allowed in the list
DocumentationHeader
public String getBody()
String
public void setBody(String value)
value
- allowed object is
String
public String getMethod()
String
public void setMethod(String value)
value
- allowed object is
String
public void setUri(String value)
value
- allowed object is
String
public String getContentType()
String
public void setContentType(String value)
value
- allowed object is
String
public String getAccept()
String
public void setAccept(String value)
value
- allowed object is
String
public String getUser()
String
public void setUser(String value)
value
- allowed object is
String
public String getPassword()
String
Copyright © 2011-2018 restSQL Project Contributors