SimpleHttpMonitor¶
-
public class
SimpleHttpMonitor
implements Runnable¶ The
SimpleHttpMonitor
is a very very simple HTTP monitor used for testing.
Fields¶
Constructors¶
Methods¶
getContentStream¶
-
public InputStream
getContentStream
()¶ 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.
getInputStream¶
-
public InputStream
getInputStream
()¶ Returns: Get the last HTTP request content.
onAccept¶
onRequest¶
-
protected void
onRequest
(InputStream ins)¶ [@EVENT] This method is invoked after the socket is accepted.
onResponse¶
-
protected void
onResponse
(OutputStream os)¶ [@EVENT] This method is invoked when the HTTP content has been parsed, and now ready to write content to socket.