Client can register listeners to be used by the connectivity layer to notify the implementation about the result of the request.
class example implements INetListener{ .... public void makeGetRequest(...) throws Exception { .... BaseRequest getrequest = new BaseRequest(); getrequest.setListener(this); } ... }
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.