setListener(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 (INetListener listener)

Parameters

Returns

none

Remarks

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

Setting this object is not mandatory. However, it can be used to handle incidental errors.

Example 1

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