public class SOSClient extends Object
Implementation of an SOS client that connects to a remote SOS to download
real-time observations and make them available on the local node as data
events.
Modifier and Type | Class and Description |
---|---|
static interface |
SOSClient.SOSRecordListener |
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
SOSClient(GetResultRequest request,
boolean useWebsockets) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectWithPersistentHttp(DataStreamParser parser,
SOSClient.SOSRecordListener listener) |
protected void |
connectWithWebsockets(DataStreamParser parser,
SOSClient.SOSRecordListener listener) |
DataEncoding |
getRecommendedEncoding() |
DataComponent |
getRecordDescription() |
AbstractProcess |
getSensorDescription(String sensorUID) |
void |
retrieveStreamDescription() |
void |
startStream(SOSClient.SOSRecordListener listener) |
void |
stopStream() |
public SOSClient(GetResultRequest request, boolean useWebsockets)
public void retrieveStreamDescription() throws SensorHubException
SensorHubException
public AbstractProcess getSensorDescription(String sensorUID) throws SensorHubException
SensorHubException
public void startStream(SOSClient.SOSRecordListener listener) throws SensorHubException
SensorHubException
protected void connectWithPersistentHttp(DataStreamParser parser, SOSClient.SOSRecordListener listener) throws SensorHubException
SensorHubException
protected void connectWithWebsockets(DataStreamParser parser, SOSClient.SOSRecordListener listener) throws SensorHubException
SensorHubException
public void stopStream()
public DataComponent getRecordDescription()
public DataEncoding getRecommendedEncoding()
Copyright © 2016 Sensia Software LLC. All rights reserved.