| java.lang.Object sim.toolkit.ViewHandler sim.toolkit.EditHandler sim.toolkit.EnvelopeResponseHandler
EnvelopeResponseHandler | final public class EnvelopeResponseHandler extends EditHandler (Code) | | The EnvelopeResponseHandler class contains basic methods to handle the
Envelope response
data field. This class will be used by the Toolkit applet in order to
edit the response to current Envelope command. No constructor is available
for the Toolkit applet. The EnvelopeResponseHandler class is a Temporary
JCRE Entry Point Object. The only way to get a EnvelopeResponseHandler
reference is through the getTheHandler() static method.
version: 8.3.0 See Also: ViewHandler See Also: EditHandler See Also: EnvelopeHandler See Also: ToolkitException |
Method Summary | |
public short | getCapacity() Returns the maximum size of the Simple TLV list managed by the handler. | public static EnvelopeResponseHandler | getTheHandler() Returns the single system instance of the EnvelopeResponseHandler class. | public void | post(byte statusType) Pepares the Envelope response. | public void | postAsBERTLV(byte statusType, byte tag) Prepare the Envelope response in a BER TLV structure. |
handlerAvailable | boolean handlerAvailable(Code) | | |
postCalled | boolean postCalled(Code) | | |
status | public static byte status(Code) | | |
getCapacity | public short getCapacity() throws ToolkitException(Code) | | Returns the maximum size of the Simple TLV list managed by the handler.
size in bytes exception: ToolkitException - with the following reason codes: HANDLER_NOT_AVAILABLE if the handler is busy
|
getTheHandler | public static EnvelopeResponseHandler getTheHandler() throws ToolkitException(Code) | | Returns the single system instance of the EnvelopeResponseHandler class.
The applet shall get the reference of the handler at its triggering,
the beginning of the processToolkit method.
reference of the system instance exception: ToolkitException - with the following reason codes: HANDLER_NOT_AVAILABLE if the handler is busy.
|
post | public void post(byte statusType) throws ToolkitException(Code) | | Pepares the Envelope response. Should be used with Envelope SMS-PP Data
Download.
Parameters: statusType - the status to be sent to the ME (SW1_RP_ACK or SW1_RP_ERROR) exception: ToolkitException - with the following reason codes: HANDLER_NOT_AVAILABLE if the handler is busy
|
postAsBERTLV | public void postAsBERTLV(byte statusType, byte tag) throws ToolkitException(Code) | | Prepare the Envelope response in a BER TLV structure. Should be used
with Envelope Call Control by SIM or MO Short Message Control by SIM.
The tag value is to be used to set the Result for Call Control and
MO Short Message Control by the SIM.
Parameters: statusType - the status to be sent to the ME (SW1_RP_ACK or SW1_RP_ERROR) Parameters: tag - the BER Tag to be used at the beginning of the SIMPLE_TLV list. exception: ToolkitException - with the following reason codes: HANDLER_NOT_AVAILABLE if the handler is busy
|
Methods inherited from sim.toolkit.EditHandler | public void appendArray(byte[] buffer, short offset, short length) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public void appendTLV(byte tag, byte[] value, short valueOffset, short valueLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public void appendTLV(byte tag, byte value) throws ToolkitException(Code)(Java Doc) public void appendTLV(byte tag, byte value1, byte value2) throws ToolkitException(Code)(Java Doc) public void appendTLV(byte tag, byte value1, byte[] value2, short value2Offset, short value2Length) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public void clear() throws ToolkitException(Code)(Java Doc)
|
Methods inherited from sim.toolkit.ViewHandler | public byte compareValue(short valueOffset, byte[] compareBuffer, short compareOffset, short compareLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public short copy(byte[] dstBuffer, short dstOffset, short dstLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public short copyValue(short valueOffset, byte[] dstBuffer, short dstOffset, short dstLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public byte findAndCompareValue(byte tag, byte[] compareBuffer, short compareOffset) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public byte findAndCompareValue(byte tag, byte occurrence, short valueOffset, byte[] compareBuffer, short compareOffset, short compareLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public short findAndCopyValue(byte tag, byte[] dstBuffer, short dstOffset) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public short findAndCopyValue(byte tag, byte occurrence, short valueOffset, byte[] dstBuffer, short dstOffset, short dstLength) throws NullPointerException, ArrayIndexOutOfBoundsException, ToolkitException(Code)(Java Doc) public byte findTLV(byte tag, byte occurrence) throws ToolkitException(Code)(Java Doc) public static byte[] getAPDUBuffer(byte[] buffer)(Code)(Java Doc) public static byte[] getAPDUBuffer()(Code)(Java Doc) protected short getLastTLVOffset(byte[] buffer, short Lc)(Code)(Java Doc) public short getLength() throws ToolkitException(Code)(Java Doc) protected short getTLVOffset(byte[] buffer, byte tag, short Lc, short occurrence)(Code)(Java Doc) public byte getValueByte(short valueOffset) throws ToolkitException(Code)(Java Doc) public short getValueLength() throws ToolkitException(Code)(Java Doc) public static void setAPDUBuffer(byte[] buffer, short length)(Code)(Java Doc) public static void setAPDUBuffer(short length)(Code)(Java Doc) public static void setOutBufferData(short length)(Code)(Java Doc)
|
|
|