com.koushikdutta.async.http
Class JSONObjectBody
java.lang.Object
com.koushikdutta.async.http.JSONObjectBody
- All Implemented Interfaces:
- AsyncHttpRequestBody<JSONObject>
public class JSONObjectBody
- extends java.lang.Object
- implements AsyncHttpRequestBody<JSONObject>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
- See Also:
- Constant Field Values
JSONObjectBody
public JSONObjectBody()
JSONObjectBody
public JSONObjectBody(JSONObject json)
parse
public void parse(DataEmitter emitter,
CompletedCallback completed)
- Specified by:
parse in interface AsyncHttpRequestBody<JSONObject>
write
public void write(AsyncHttpRequest request,
AsyncHttpResponse sink)
- Specified by:
write in interface AsyncHttpRequestBody<JSONObject>
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in interface AsyncHttpRequestBody<JSONObject>
readFullyOnRequest
public boolean readFullyOnRequest()
- Specified by:
readFullyOnRequest in interface AsyncHttpRequestBody<JSONObject>
length
public int length()
- Specified by:
length in interface AsyncHttpRequestBody<JSONObject>
get
public JSONObject get()
- Specified by:
get in interface AsyncHttpRequestBody<JSONObject>