com.alarexgroup.m2mplf.net.http
Interface HTTPEventListener
- All Known Implementing Classes:
- SerialDemo
public interface HTTPEventListener
Listener for HttpAsyncCommunicator's events.
|
Method Summary |
void |
onHTTPEvent(int requestId,
int errorCode,
java.io.DataInputStream dis)
This method is called when application receives answer from HTTP request. |
onHTTPEvent
void onHTTPEvent(int requestId,
int errorCode,
java.io.DataInputStream dis)
- This method is called when application receives answer from HTTP request.
This asychronous handling lets you send HTTP request without the need of waiting for the answer so the application can run along without waiting.
- Parameters:
requestId - request identifier - user variableerrorCode - error code - HTTP response codedis - InputStream - received answer