public final class DefaultSelectionsResponse extends AbstractDefaultSelectionsResponse
It provides a list of CardSelectionResponse
as the result of the selection process.
Note: this class extends the AbstractDefaultSelectionsResponse
class which is the one
handled at the application level.
Constructor and Description |
---|
DefaultSelectionsResponse(java.util.List<CardSelectionResponse> cardSelectionResponses)
Builds a DefaultSelectionsResponse from the list of
CardSelectionResponse received from
the reader during the selection process. |
Modifier and Type | Method and Description |
---|---|
java.util.List<CardSelectionResponse> |
getCardSelectionResponses()
Gets the result of the selection as a list of responses corresponding to the requests made in
AbstractDefaultSelectionsRequest . |
public DefaultSelectionsResponse(java.util.List<CardSelectionResponse> cardSelectionResponses)
CardSelectionResponse
received from
the reader during the selection process. It transports the selection results into the ReaderEvent
when the reader is observed and also during explicit selections in the case of an
unobserved reader.
The list of CardSelectionResponse
corresponds to the list of CardSelectionRequest
present in the DefaultSelectionsRequest
. The first CardSelectionResponse
corresponds to the first CardRequest
and so on.
When a CardRequest
has not resulted in a response, then the corresponding CardSelectionResponse
in the list is null.
Depending on the setting of the selection, the process either processes all selection cases
provided in the DefaultSelectionsRequest
or stops at the first selection case that
results in a response. In the latter case, the CardSelectionResponse
list may be
shorter than the CardRequest
list.
cardSelectionResponses
- A list of CardSelectionResponse
(should not be null).public final java.util.List<CardSelectionResponse> getCardSelectionResponses()
AbstractDefaultSelectionsRequest
.getCardSelectionResponses
in class AbstractDefaultSelectionsResponse