Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsISOAPResponseListener Interface Reference

This interface represents a response handler to be invoked whenever a response of a particular call is recieved and when no more responses are expected. More...

import "nsISOAPResponseListener.idl";

Inheritance diagram for nsISOAPResponseListener:
Inheritance graph
[legend]
Collaboration diagram for nsISOAPResponseListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean handleResponse (in nsISOAPResponse aResponse, in nsISOAPCall aCall, in unsigned long status, in boolean aLast)
 This method is invoked when we receive an asynchronous response to a SOAP message.

Detailed Description

This interface represents a response handler to be invoked whenever a response of a particular call is recieved and when no more responses are expected.

Definition at line 51 of file nsISOAPResponseListener.idl.


Member Function Documentation

boolean nsISOAPResponseListener::handleResponse ( in nsISOAPResponse  aResponse,
in nsISOAPCall  aCall,
in unsigned long  status,
in boolean  aLast 
)

This method is invoked when we receive an asynchronous response to a SOAP message.

The listener is registered as part of the original asynchronous call invocation.

Parameters:
aResponseThe decoded version of the response. If an error occurred transmitting the response, the status field of the response will contain an error code. The last call to the listener may contain a null response, which should only be interpreted as an error if your call expected more results than it got. If the service or the transport do not know whether to expect more results, then setting the last parameter true may only be possible after the last response has already been delivered.
aLastTrue if this is the last call to the listener.
Returns:
True to make this the last call to the listener, even if last was not true. Calls which expect a single response should return true upon receiving that response to avoid possibly recieving another callback with a null response indicating that the last response was already sent.

The documentation for this interface was generated from the following file: