|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProtocolFactory
Nested Class Summary | |
---|---|
static class |
ProtocolFactory.MessageVerificationReason
Describes possible reasons of verification. |
static interface |
ProtocolFactory.MessageVerificationSupport
Verifies message to use it. |
Method Summary | |
---|---|
Message |
createMessage(int id)
Creates Message by id. |
Message |
createMessage(int id,
java.lang.String name)
Creates Message by id. |
java.lang.String |
getMessageName(int id)
Returns message name by its id. |
java.lang.Object |
getProtocolData()
Gets some specific data related to given protocol (for internal use only). |
ProtocolDescription |
getProtocolDescription()
Returns protocol description in format <Category>.<Name> |
java.lang.String |
getProtocolVersion()
Returns protocol version. |
void |
setProtocolData(java.lang.Object value)
Sets some specific data related to given protocol (for internal use only). |
Method Detail |
---|
Message createMessage(int id)
Message
by id.
id
- id of the message
Message
subclass for the specified id.
java.lang.IllegalArgumentException
- if message with such id can't
be createdMessage createMessage(int id, java.lang.String name)
Message
by id.
id
- id of the message
Message
subclass for the specified id.
java.lang.IllegalArgumentException
- if message with such id can't
be createdjava.lang.String getMessageName(int id)
id
- message id
ProtocolDescription getProtocolDescription()
<Category>.<Name>
java.lang.String getProtocolVersion()
java.lang.Object getProtocolData()
void setProtocolData(java.lang.Object value)
value
- protocol data
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |