Preliminary documentation subject to change

com.bugcollect
Interface IResponseCallback


public interface IResponseCallback

The callback interface for report submission result notification. Applications interested in knowing the result of a report submittion and/or the response from bugcollect.com should provide an object that impelements IResponseCallback when invoking ReportingManager.Submit.


Method Summary
 void responseReceived(Report submittedReport, Result receivedResponse, java.lang.Object state)
          Method invoked on succesful submittion.
 void submittionException(Report submittedReport, java.lang.Throwable submittionException, java.lang.Object state)
          Method invoked on failed submittion.
 

Method Detail

responseReceived

void responseReceived(Report submittedReport,
                      Result receivedResponse,
                      java.lang.Object state)
Method invoked on succesful submittion. A submittion is considered succesful if a response is received from bugcollect.com. Application are expected to check the receivedResponse to get the submittion status.

Parameters:
submittedReport - the Report submitted for which this callback applies
receivedResponse - the Result response from bugcollect.com
state - the state object supplied to the Submit method.
See Also:
ReportingManager.Submit(com.bugcollect.Report, com.bugcollect.IResponseCallback, java.lang.Object)

submittionException

void submittionException(Report submittedReport,
                         java.lang.Throwable submittionException,
                         java.lang.Object state)
Method invoked on failed submittion.

Parameters:
submittedReport - the Report submitted for which this callback applies.
submittionException - the exception that occured during submittion.
state - the state object supplied to the Submit method.

Preliminary documentation subject to change