public abstract class AbstractApduCommandBuilder
extends java.lang.Object
It provides the generic getters to retrieve:
Modifier and Type | Field and Description |
---|---|
protected CardCommand |
commandRef
The reference field
CardCommand is used to find the type of command concerned when
manipulating a list of abstract builder objects. |
protected ApduRequest |
request
The byte array APDU request.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractApduCommandBuilder(CardCommand commandRef,
ApduRequest request)
(protected)
The generic abstract constructor to build an APDU request with a command reference and a byte array. |
Modifier and Type | Method and Description |
---|---|
void |
addSubName(java.lang.String subName)
Appends a string to the current name.
|
ApduRequest |
getApduRequest()
Gets
ApduRequest the request |
CardCommand |
getCommandRef()
Gets
CardCommand the current command identification |
java.lang.String |
getName()
Gets the name of this APDU command if it has been allowed by the log level (see constructor).
|
protected final CardCommand commandRef
CardCommand
is used to find the type of command concerned when
manipulating a list of abstract builder objects. Unfortunately, the diversity of these objects
does not allow the use of simple generic methods.protected ApduRequest request
protected AbstractApduCommandBuilder(CardCommand commandRef, ApduRequest request)
commandRef
- command reference (should not be null)request
- requestpublic final void addSubName(java.lang.String subName)
The subname completes the name of the current command. This method must therefore only be called conditionally (log level >= debug).
subName
- the string to appendpublic CardCommand getCommandRef()
CardCommand
the current command identificationpublic final java.lang.String getName()
public final ApduRequest getApduRequest()
ApduRequest
the request