public class BlaubotWifiP2PConnector extends java.lang.Object implements IBlaubotConnector
Modifier | Constructor and Description |
---|---|
protected |
BlaubotWifiP2PConnector(BlaubotWifiP2PAdapter blaubotWifiP2PAdapter) |
Modifier and Type | Method and Description |
---|---|
IBlaubotConnection |
connectToBlaubotDevice(IBlaubotDevice blaubotDevice)
Try to connect to the given
IBlaubotDevice . |
IBlaubotAdapter |
getAdapter()
Get the adapter of which this connector is part of.
|
java.util.List<java.lang.String> |
getSupportedAcceptorTypes()
Returns a list of supported acceptors to connect to.
|
void |
setBeaconStore(IBlaubotBeaconStore beaconStore)
Setter method for the dependency injection of a beacon store.
|
void |
setIncomingConnectionListener(IBlaubotIncomingConnectionListener acceptorConnectorListener)
Setter method for a callback that will be triggered when this
connector successfully established a connection to a remote device.
|
protected BlaubotWifiP2PConnector(BlaubotWifiP2PAdapter blaubotWifiP2PAdapter)
public IBlaubotAdapter getAdapter()
IBlaubotConnector
getAdapter
in interface IBlaubotConnector
public void setBeaconStore(IBlaubotBeaconStore beaconStore)
IBlaubotConnector
setBeaconStore
in interface IBlaubotConnector
beaconStore
- the beacon store implementationpublic void setIncomingConnectionListener(IBlaubotIncomingConnectionListener acceptorConnectorListener)
IBlaubotConnector
setIncomingConnectionListener
in interface IBlaubotConnector
acceptorConnectorListener
- the listener instancepublic IBlaubotConnection connectToBlaubotDevice(IBlaubotDevice blaubotDevice) throws IncompatibleBlaubotDeviceException
IBlaubotConnector
IBlaubotDevice
.connectToBlaubotDevice
in interface IBlaubotConnector
blaubotDevice
- the device to connect toIncompatibleBlaubotDeviceException
public java.util.List<java.lang.String> getSupportedAcceptorTypes()
IBlaubotConnector
getSupportedAcceptorTypes
in interface IBlaubotConnector