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