org.nfctools.llcp
Class AbstractReceivingServiceAccessPoint

java.lang.Object
  extended by org.nfctools.llcp.AbstractReceivingServiceAccessPoint
All Implemented Interfaces:
ServiceAccessPoint

public abstract class AbstractReceivingServiceAccessPoint
extends Object
implements ServiceAccessPoint


Constructor Summary
AbstractReceivingServiceAccessPoint()
           
 
Method Summary
 boolean canAcceptConnection(Object[] parameters)
          Called if the other party wants to connect to this service.
 void onConnectFailed()
          Called if a connection failed/timed out.
 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.
 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.
 void onSendSucceeded(LlcpSocket llcpSocket)
          Called if a sendMessage was successful and the other party responded with receive ready.
 
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
onConnectionActive, onInformation
 

Constructor Detail

AbstractReceivingServiceAccessPoint

public AbstractReceivingServiceAccessPoint()
Method Detail

onLlcpActive

public void onLlcpActive(Llcp llcp)
Description copied from interface: ServiceAccessPoint
Called if there is a device in range and the LLCP stack is active.

Specified by:
onLlcpActive in interface ServiceAccessPoint

onConnectFailed

public void onConnectFailed()
Description copied from interface: ServiceAccessPoint
Called if a connection failed/timed out.

Specified by:
onConnectFailed in interface ServiceAccessPoint

onConnectSucceeded

public void onConnectSucceeded(LlcpSocket llcpSocket)
Description copied from interface: ServiceAccessPoint
Called if a connection succeeded and the other party is ready to receive data.

Specified by:
onConnectSucceeded in interface ServiceAccessPoint

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.

Specified by:
onSendSucceeded in interface ServiceAccessPoint

onSendFailed

public void onSendFailed()
Description copied from interface: ServiceAccessPoint
Called if a sendMessage failed.

Specified by:
onSendFailed in interface ServiceAccessPoint

onDisconnect

public void onDisconnect()
Description copied from interface: ServiceAccessPoint
Called if the other party ended the connection or the LLCP stack ended.

Specified by:
onDisconnect in interface ServiceAccessPoint

canAcceptConnection

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

Specified by:
canAcceptConnection in interface ServiceAccessPoint
Returns:


Copyright © 2012. All Rights Reserved.