SimpleSoapMonitor¶
-
public class
SimpleSoapMonitor
implements Runnable¶ The
SimpleHttpMonitor
is 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
Fields¶
Constructors¶
Methods¶
getContentLength¶
-
public synchronized int
getContentLength
()¶ Returns: The content length of last HTTP request.
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
()¶ Get the input stream containing the raw last HTTP request (header + content).
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.