SimpleHttpMonitoris a very simple raw HTTP monitor used for testing. It is usually required to override some method in this class to provide handle the HTTP request / response event such as generating proper response for the requester.
Author: Twinsen Tsang
public synchronized int
Returns: The content length of last HTTP request.
Get the input stream containing the HTTP body content from the last HTTP request. It is different from
getInputStream()because that returns the stream containing (HTTP header + HTTP body content).
Returns: the input stream containing the HTTP body content from the last HTTP request.
[@EVENT] This method is invoked before calling onResponse. It ask the sub-class implementation for the content length of this response. Default return 0.