我得到了一个使用数据流和java的任务。我需要做的是编写一个连接到给定数据流的java类和它的API。
URI:http://<hostname>/ws/DataStream
HTTP operations supported:
GET: query one or more data streams
Elements include:
cstId - customer ID of customer that owns the data stream
streamId - the stream ID
forwardTo - comma separated list of streams to replicate data points to
得到
GET 用于检索数据流列表,或通过其 ID 检索特定流
Example #1:
To get a list of all data streams:
GET ws/DataStream
Returns a list of data streams.
Example #2:
To get information about a specific data stream using its stream ID:
GET ws/DataStream/{streamId}
我了解它的工作原理,
我如何创建一个类来获取这个值?
我需要使用什么样的对象来存储它们
例如,我如何将它们插入数据库?