|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nfctools.snep.AbstractSnepImpl
public abstract class AbstractSnepImpl
| Field Summary | |
|---|---|
protected SnepMessage |
continueMessage
|
protected FragmentIterator |
fragmentIterator
|
protected int |
maxInformationUnit
|
protected FragmentReader |
reader
|
protected byte |
snepVersion
|
| Constructor Summary | |
|---|---|
protected |
AbstractSnepImpl(byte continueMessageCode)
|
| Method Summary | |
|---|---|
void |
onConnectFailed()
Called if a connection failed/timed out. |
void |
onConnectionActive(LlcpSocket llcpSocket)
Called if this Service has an active connection. |
void |
onConnectSucceeded(LlcpSocket llcpSocket)
Called if a connection succeeded and the other party is ready to receive data. |
void |
onDisconnect()
Called if the other party ended the connection or the LLCP stack ended. |
byte[] |
onInformation(byte[] serviceDataUnit)
Called if the other party has send a message or as a response to a send message from this implementation. |
void |
onLlcpActive(Llcp llcp)
Called if there is a device in range and the LLCP stack is active. |
void |
onSendFailed()
Called if a sendMessage failed. |
protected abstract byte[] |
processMessage(SnepMessage snepMessage)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nfctools.llcp.ServiceAccessPoint |
|---|
canAcceptConnection, onSendSucceeded |
| Field Detail |
|---|
protected byte snepVersion
protected int maxInformationUnit
protected FragmentReader reader
protected FragmentIterator fragmentIterator
protected SnepMessage continueMessage
| Constructor Detail |
|---|
protected AbstractSnepImpl(byte continueMessageCode)
| Method Detail |
|---|
public void onLlcpActive(Llcp llcp)
ServiceAccessPoint
onLlcpActive in interface ServiceAccessPointpublic void onConnectFailed()
ServiceAccessPoint
onConnectFailed in interface ServiceAccessPointpublic void onConnectSucceeded(LlcpSocket llcpSocket)
ServiceAccessPoint
onConnectSucceeded in interface ServiceAccessPointpublic void onSendFailed()
ServiceAccessPoint
onSendFailed in interface ServiceAccessPointpublic void onDisconnect()
ServiceAccessPoint
onDisconnect in interface ServiceAccessPointpublic void onConnectionActive(LlcpSocket llcpSocket)
ServiceAccessPoint
onConnectionActive in interface ServiceAccessPointpublic byte[] onInformation(byte[] serviceDataUnit)
ServiceAccessPoint
onInformation in interface ServiceAccessPointprotected abstract byte[] processMessage(SnepMessage snepMessage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||