public class BlaubotWebsocketConnector extends java.lang.Object implements IBlaubotConnector
Constructor and Description |
---|
BlaubotWebsocketConnector(IBlaubotAdapter adapter,
IBlaubotDevice ownDevice) |
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.
|
public BlaubotWebsocketConnector(IBlaubotAdapter adapter, IBlaubotDevice ownDevice)
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)
IBlaubotConnector
IBlaubotDevice
.connectToBlaubotDevice
in interface IBlaubotConnector
blaubotDevice
- the device to connect topublic java.util.List<java.lang.String> getSupportedAcceptorTypes()
IBlaubotConnector
getSupportedAcceptorTypes
in interface IBlaubotConnector