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.
 

Method Detail

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 variable
errorCode - error code - HTTP response code
dis - InputStream - received answer