Constructor and Description |
---|
StringBodyImpl(java.lang.String string, java.lang.String contentType) |
Modifier and Type | Method and Description |
---|---|
JSONArray |
asJSONArray() |
JSONObject |
asJSONObject() |
org.w3c.dom.Node |
asNode() |
java.io.InputStream |
asStream() |
java.lang.String |
asString() |
ContentType |
getContentType() |
public StringBodyImpl(java.lang.String string, java.lang.String contentType) throws java.io.IOException
java.io.IOException
public java.io.InputStream asStream() throws java.io.IOException
public java.lang.String asString() throws java.io.IOException
public JSONObject asJSONObject() throws java.io.IOException
asJSONObject
in interface Body
java.io.IOException
public JSONArray asJSONArray() throws java.io.IOException
asJSONArray
in interface Body
java.io.IOException
public org.w3c.dom.Node asNode() throws java.io.IOException
public ContentType getContentType()
getContentType
in interface Body