public class Content extends Object implements Cloneable
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(Content copy) |
Content(String type,
String data)
Instantiates a new content.
|
public Content()
public Content(String type, String data)
type
- the typedata
- the datapublic Content(Content copy)
public String getType()
public void setType(String type)
type
- the new typepublic String getData()
public void setData(String data)
data
- the new dataCopyright © 2021. All rights reserved.