Methods Summary |
---|
public short | getCapacity()Returns the maximum size of the Simple TLV list managed by the handler.
return (short)0;
|
public static sim.toolkit.EnvelopeResponseHandler | getTheHandler()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.
EnvelopeResponseHandler theEnvelopeResponseHandler =
new EnvelopeResponseHandler();
theEnvelopeResponseHandler.outDataSize = 0;
theEnvelopeResponseHandler.handlerAvailable = false;
theEnvelopeResponseHandler.postCalled = false;
return theEnvelopeResponseHandler;
|
public void | post(byte statusType)Pepares the Envelope response. Should be used with Envelope SMS-PP Data
Download.
if (postCalled) {
ToolkitException.throwIt(ToolkitException.HANDLER_NOT_AVAILABLE);
}
postCalled = true;
status = statusType;
|
public void | postAsBERTLV(byte statusType, byte tag)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.
if (postCalled) {
ToolkitException
.throwIt(ToolkitException.HANDLER_NOT_AVAILABLE);
}
postCalled = true;
status = statusType;
|