opencard.tests.terminal
Class GetResponse
java.lang.Object
|
+--opencard.core.service.CardService
|
+--opencard.tests.terminal.TestBean
|
+--opencard.tests.terminal.CommandBean
|
+--opencard.tests.terminal.GetResponse
- public class GetResponse
- extends CommandBean
GetResponse is derived from the CommandBean which provided most of the required
functionality.
SAMPLE:
GetResponse response = new GetResponse();
response.setCardType(CommandCodeFactory.BULL);
response.initialize(card);
response.setId("Bull PCSC-Test2");
response.setLength(8);
response.addExpectedResult(0x9000);
response.execute();
- Version:
- $Id: GetResponse.java,v 1.1 1999/12/03 09:31:36 damke Exp $
- See Also:
CommandBean,
TestBean
|
Method Summary |
protected void |
setCommandBytes()
define the default values for the command parameters: |
void |
setLength(int length)
Friendly Method to set the expected Length of returned response data
to be read from the card.
|
| Methods inherited from class opencard.tests.terminal.CommandBean |
assemble,
execute,
getCardType,
getCla,
getCommandData,
getIns,
getLe,
getMode,
getP1,
getP2,
getResponseData,
initialize,
resetCardService,
setCardService,
setCardType,
setCla,
setCommandData,
setIns,
setLe,
setMode,
setP1,
setP2,
setParameters,
toString |
| Methods inherited from class opencard.tests.terminal.TestBean |
addExpectedResult,
addExpectedResult,
addUnexpectedResult,
addUnexpectedResult,
checkResult,
clearResultLookup,
getId,
getLabel,
getResult,
getResultString,
getTitle,
isDetails,
lookupResult,
lookupResult,
setDetails,
setId,
setLabel,
setResult,
setResult,
setResult |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
GetResponse
public GetResponse()
throws TestInitException
- Default constructor.
Sets a Label for the friendly log-output
Since the CommandBeans should be beans, please declare only the default
constructor.
setCommandBytes
protected void setCommandBytes()
- define the default values for the command parameters:
- Overrides:
- setCommandBytes in class CommandBean
setLength
public void setLength(int length)
- Friendly Method to set the expected Length of returned response data
to be read from the card.
The given length is transformed into the apropriate parameters and
and CommandData of the APDU
- Parameters:
lengt- - the length of data to be read
|