it.dtt.ca.response
Class OfferedProductsResponseEvent
java.lang.Object
it.dtt.ca.response.ResponseEvent
it.dtt.ca.response.SuccessResponseEvent
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
getProducts
public Product[] getProducts()
- Get the array of products currently offered.
- Returns:
- an array of Products, or null of no product is currently available.