public class Content extends Object
Post a Form:
<content type='application/x-www-form-urlencoded'><![CDATA[
<form-fields>
<form-field name='firstName'>Alejandro</form-field>
<form-field name='lastName'>Galue</form-field>
</form-fields>
]]></content>
Post a JSON Object:
<content type='application/json'><![CDATA[
{
person: {
firstName: 'Alejandro',
lastName: 'Galue'
}
}
]]></content>
Post a XML:
<content type='application/xml'><![CDATA[
<person>
<firstName>Alejandro</firstName>
<lastName>Galue</lastName>
</person>
]]></content>
| Constructor and Description |
|---|
Content()
Instantiates a new content.
|
Content(String type,
String data)
Instantiates a new content.
|
public String getType()
public void setType(String type)
type - the new typepublic String getData()
public void setData(String data)
data - the new dataCopyright © 2020. All rights reserved.