public final class DefaultSelectionsRequest extends AbstractDefaultSelectionsRequest
The default selection is defined by:
CardSelectionRequest corresponding to one or more selection cases.
MultiSelectionProcessing indicator specifying whether all planned selections are
to be executed or whether to stop at the first one that is successful.
ChannelControl indicator controlling the physical channel to stipulate whether it
should be closed or left open at the end of the selection process.
AbstractDefaultSelectionsRequest class which is the one
handled at the application level.| Constructor and Description |
|---|
DefaultSelectionsRequest(java.util.List<CardSelectionRequest> cardSelectionRequests,
MultiSelectionProcessing multiSelectionProcessing,
ChannelControl channelControl)
Builds a DefaultSelectionsRequest from a list of selection cases and two enum constants guiding
the expected behaviour of the selection process.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CardSelectionRequest> |
getCardSelectionRequests()
Gets the list of selection cases provided in the default selection
|
ChannelControl |
getChannelControl()
Gets the indication whether the logic channel is to be kept open or closed
|
MultiSelectionProcessing |
getMultiSelectionProcessing()
Gets the indication whether the selection process should stop after the first matching case or
process all of them.
|
public DefaultSelectionsRequest(java.util.List<CardSelectionRequest> cardSelectionRequests, MultiSelectionProcessing multiSelectionProcessing, ChannelControl channelControl)
The MultiSelectionProcessing enum is used to attempt to execute all the selection
cases: MultiSelectionProcessing.PROCESS_ALL (for example in order to list all the
applications present in a card) or MultiSelectionProcessing.FIRST_MATCH (to target a
single application).
The ChannelControl enum controls the closing of the physical channel at the end of
the selection.
Note: the CardSelectionRequest list should be carefully ordered in accordance with
the cards expected in the application to optimize the processing time of the selection process.
The first selection case in the list will be processed first.
cardSelectionRequests - A list of CardSelectionRequest embedding the selection
data (must be not empty).multiSelectionProcessing - The multi request processing mode (must be not null).channelControl - The channel control (must be not null).public final MultiSelectionProcessing getMultiSelectionProcessing()
getMultiSelectionProcessing in class AbstractDefaultSelectionsRequestpublic final ChannelControl getChannelControl()
getChannelControl in class AbstractDefaultSelectionsRequestpublic final java.util.List<CardSelectionRequest> getCardSelectionRequests()
getCardSelectionRequests in class AbstractDefaultSelectionsRequest