mymobilesite.controller
Interface LibertyProtocolListener

All Known Implementing Classes:
Controller

public interface LibertyProtocolListener

The LibertyProtocolListener interface is a listener capable of receiving events concerning the LibertyProtocol class.

Author:
Gunn Olaussen & Kirsti N. Torgersen

Method Summary
 void encounteredException(int state, MessageException me)
          The implementation of this method should receive the exception and take appropriate action according to the error code and the state of the LibertyProvider.
 void resultsReady(int state, java.lang.Object result)
          The implementation of this method should receive the result and handle it according to the current state of the LibertyProtocol.
 

Method Detail

resultsReady

void resultsReady(int state,
                  java.lang.Object result)
The implementation of this method should receive the result and handle it according to the current state of the LibertyProtocol.

Parameters:
state - int The state which the LibertyProtocol is currently in.
result - Object The result from the LibertyProtocol to the listener.

encounteredException

void encounteredException(int state,
                          MessageException me)
The implementation of this method should receive the exception and take appropriate action according to the error code and the state of the LibertyProvider.

Parameters:
state - int The state which the LibertyProtocol is currently in.
me - MessageException The MessageException that the LibertyProtocol encountered.