setListener(final INetListener) method

Client can register listeners to be used by the connectivity layer to notify the implementation about the result of the request.

Syntax

public void setListener (final INetListener aListener)

Parameters

Returns

None

Remarks

By default, the BaseRequest object included in the connectivity layer will contain no registered listeners.

Example 1

class example implements INetListener{ .... public void makeGetRequest(...) throws Exception { .... BaseRequest getrequest = new BaseRequest(); getrequest.setListener(this); } ... }