com.nexaweb.client.netservice
Interface NetServiceListener

All Known Implementing Classes:
EventHandler

public interface NetServiceListener

NetServiceListener is used as a callback for asynchronous NetService operations. The NetServiceListener is called back when an asynchronous call either completes successfully or fails due to an error.


Method Summary
 void requestCompleted(java.lang.String requestKeyword, HttpResponse response)
          Called when the NetService operation completes successfully.
 void requestFailed(java.lang.String requestKeyword, NetServiceException exception)
          Called when the NetService operation fails.
 

Method Detail

requestCompleted

public void requestCompleted(java.lang.String requestKeyword,
                             HttpResponse response)
Called when the NetService operation completes successfully. For a retrieveAndProcess, this is called after the processing of the returned XML has taken place.

Parameters:
requestKeyword - A combination of the method name and the request uri, separated by a ':'. For example: retrieve:myPage.jsp.
response - The response object.

requestFailed

public void requestFailed(java.lang.String requestKeyword,
                          NetServiceException exception)
Called when the NetService operation fails.

Parameters:
requestKeyword - A combination of the method name and the request uri, separated by a ':'. For example: retrieve:myPage.jsp.
exception - An exception detailing the failure cause. Check NetService.retrieveAndProcess documentation for details about this exception.


Copyright © 2005 Nexaweb Technologies, Inc. All Rights Reserved.