it.dtt.ca.response
Class OfferedProductsResponseEvent

java.lang.Object
  extended by it.dtt.ca.response.ResponseEvent
      extended by it.dtt.ca.response.SuccessResponseEvent
          extended by it.dtt.ca.response.OfferedProductsResponseEvent

public class OfferedProductsResponseEvent
extends SuccessResponseEvent

This class is used to notify that a request for offered products has ended successfully, and to provide the list of such offered products. Where methods take an array as an input parameter, implementations should take a copy of the array. Where methods return an array, a copy should be returned and modifications to the array should be ignored by the implementation until or unless the array is passed back to the implementation as a parameter to a method call.


Constructor Summary
OfferedProductsResponseEvent(CARequest request, Product[] products)
          Constructs OfferedProductsResponseEvent.
 
Method Summary
 Product[] getProducts()
          Get the array of products currently offered.
 
Methods inherited from class it.dtt.ca.response.ResponseEvent
getRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfferedProductsResponseEvent

public OfferedProductsResponseEvent(CARequest request,
                                    Product[] products)
Constructs OfferedProductsResponseEvent.

Parameters:
request - the CARequest object, that generated this response.
products - the specific products that are currently offered.
Method Detail

getProducts

public Product[] getProducts()
Get the array of products currently offered.

Returns:
an array of Products, or null of no product is currently available.