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>
| Modifier and Type | Field and Description |
|---|---|
protected String |
accept |
protected String |
body |
protected String |
contentType |
protected List<DocumentationHeader> |
header |
protected String |
method |
protected String |
password |
protected String |
uri |
protected String |
user |
| 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.
|
protected List<DocumentationHeader> header
protected String body
protected String method
protected String uri
protected String contentType
protected String accept
protected String user
protected String password
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()
Stringpublic void setBody(String value)
value - allowed object is
Stringpublic String getMethod()
Stringpublic void setMethod(String value)
value - allowed object is
Stringpublic void setUri(String value)
value - allowed object is
Stringpublic String getContentType()
Stringpublic void setContentType(String value)
value - allowed object is
Stringpublic String getAccept()
Stringpublic void setAccept(String value)
value - allowed object is
Stringpublic String getUser()
Stringpublic void setUser(String value)
value - allowed object is
Stringpublic String getPassword()
StringCopyright © 2011-2018 restSQL Project Contributors