org.nfctools.snep
Class SnepServer

java.lang.Object
  extended by org.nfctools.snep.AbstractSnepImpl
      extended by org.nfctools.snep.SnepServer
All Implemented Interfaces:
ServiceAccessPoint

public class SnepServer
extends AbstractSnepImpl


Field Summary
 
Fields inherited from class org.nfctools.snep.AbstractSnepImpl
continueMessage, fragmentIterator, maxInformationUnit, reader, snepVersion
 
Constructor Summary
SnepServer(Sneplet sneplet)
           
 
Method Summary
 boolean canAcceptConnection(Object[] parameters)
          Called if the other party wants to connect to this service.
 void onSendSucceeded(LlcpSocket llcpSocket)
          Called if a sendMessage was successful and the other party responded with receive ready.
protected  byte[] processMessage(SnepMessage snepMessage)
           
 
Methods inherited from class org.nfctools.snep.AbstractSnepImpl
onConnectFailed, onConnectionActive, onConnectSucceeded, onDisconnect, onInformation, onLlcpActive, onSendFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnepServer

public SnepServer(Sneplet sneplet)
Method Detail

onSendSucceeded

public void onSendSucceeded(LlcpSocket llcpSocket)
Description copied from interface: ServiceAccessPoint
Called if a sendMessage was successful and the other party responded with receive ready.


canAcceptConnection

public boolean canAcceptConnection(Object[] parameters)
Description copied from interface: ServiceAccessPoint
Called if the other party wants to connect to this service.

Returns:

processMessage

protected byte[] processMessage(SnepMessage snepMessage)
Specified by:
processMessage in class AbstractSnepImpl


Copyright © 2012. All Rights Reserved.