|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HCIMessage
An instance of HCIMessage is used to get access to the content of a received HCI message. Every HCI message that is not longer then 270 bytes has to be presented to the Applet as a complete message. In this case the contactless framework is responsible to manage the defragmentation. The contactless framework shall support outgoing HCIMessages of at least 256 bytes.
Sub interfaces will typically have additional methods for sending HCI service specific HCI messages.
Instances of HCIMessage hide the fragmentation of messages on the HCI layer
(see TS 102 622). However, as receive and send buffers with limited capacity will
be used it provides methods to check if
a message is complete (see isHeading() and isComplete()) in order to support
streaming of long messages.
Instances of this object shall be temporary JCRE entry point objects.
HCIListener| Field Summary | |
|---|---|
static byte |
RESP_ANY_E_CMD_NOT_SUPPORTED
the command is not supported by the gate |
static byte |
RESP_ANY_E_INHIBITED
command is inhibited due to failure of lower layer identity check |
static byte |
RESP_ANY_E_NOK
command was rejected and/or not completed |
static byte |
RESP_ANY_E_NOT_CONNECTED
the destination host is not connected |
static byte |
RESP_ANY_E_REG_ACCESS_DENIED
permission denied to write/read a value to/from a registry |
static byte |
RESP_ANY_E_REG_PAR_UNKNOWN
the registry parameter identifier is either unknown to the registry or an optional registry parameter is not implemented |
static byte |
RESP_ANY_OK
command completed successfully (with optional parameters) |
static byte |
TYPE_COMMAND
Indicates the HCI message type "command" |
static byte |
TYPE_EVENT
Indicates the HCI message type "event" |
static byte |
TYPE_RESPONSE
Indicates the HCI message type "response" |
| Method Summary | |
|---|---|
byte |
getInstruction()
Returns the instruction part of the HCP message header of the current incomming HCP message, see TS 102 622 for further information. |
byte[] |
getReceiveBuffer()
Return a reference to the underlying HCI message receive buffer. |
short |
getReceiveLength()
This method returns the length of the received HCI message data. |
short |
getReceiveOffset()
This method returns the offset of the received HCI message data in the receive buffer. |
byte |
getType()
Returns the type of the incomming HCI message |
boolean |
isComplete()
Cheks for the completeness of the HCI message. |
boolean |
isHeading()
Checks if the current content is the heading part of an HCI message The heading information indicates the first part of an HCI message; with the isComplete() method it is possible to check weather the complete message
has already been received. |
| Field Detail |
|---|
static final byte TYPE_COMMAND
static final byte TYPE_EVENT
static final byte TYPE_RESPONSE
static final byte RESP_ANY_OK
static final byte RESP_ANY_E_NOT_CONNECTED
static final byte RESP_ANY_E_NOK
static final byte RESP_ANY_E_REG_PAR_UNKNOWN
static final byte RESP_ANY_E_CMD_NOT_SUPPORTED
static final byte RESP_ANY_E_INHIBITED
static final byte RESP_ANY_E_REG_ACCESS_DENIED
| Method Detail |
|---|
boolean isHeading()
isComplete() method it is possible to check weather the complete message
has already been received.
boolean isComplete()
The preparing of an outgoing message (command response or event) may/shall reset the current HCI message states according to the outgoing message.
byte getType()
In the case of a fragmented incoming message this method shall return the HCI message type coded in the first part of the HCI message.
TYPE_* defined in this interfacebyte getInstruction()
In the case of a fragmented incoming message this method shall return the HCI message instruction coded in the first part of the HCI message.
byte[] getReceiveBuffer()
When the listener is triggered with an incoming message the usable data
shall be found in the buffer returned by this method, starting at the offset given by
the method getReceiveOffset(). The length of the received message or message fragment
can be retrieved from getReceiveLength().
Note:
short getReceiveOffset()
getReceiveBuffer().short getReceiveLength()
requestCallbackNotification method the return value shall be zero.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||