|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Public interface for any class wanting to use the HttpPostWrapper class.
Method Summary | |
void |
handleHttpPostReply(long handle,
java.lang.String data,
java.net.HttpURLConnection urlConn)
This callback method will provide the returned/reply data from a successful post request matching the HTTP thread handle. |
void |
handleHttpPostState(long handle,
int state)
This callback method will provide you with state information for the HTTP thread matching the handle returned. |
Method Detail |
public void handleHttpPostState(long handle, int state)
state
parameters are defined in the HTTPPostWrapper
class.
The HTTP_POST_SUCCESS
state parameter will always be returned after a successful post request/reply has occured
and can be used as a message complete indicator.
handle
- state
- public void handleHttpPostReply(long handle, java.lang.String data, java.net.HttpURLConnection urlConn)
HTTP_POST_SUCCESS
state event.
For simplicity, the data
returned from the server is presented as a String. You may extract the same information from within the urlConn object by invoking the getInputStream()
method.
The urlConn object is returned in order to provide any header field information for the returned data (if needed).
handle
- data
- urlConn
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |