public class HDHRPrimeClient extends ProtocolClient<HDHRPrimeProtocol>
charset, jaxb, mapper| Modifier | Constructor and Description |
|---|---|
protected |
HDHRPrimeClient(HttpClientBuilder builder,
String host)
Protected constructor.
|
|
HDHRPrimeClient(String host)
Sole public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<LineupEntry> |
getLineup()
|
HttpEntity |
getLineup(String type)
|
HttpEntity |
stream(Integer tuner,
Integer channel,
Integer duration)
|
client, context, getCharset, getJAXBContext, getMarshaller, getObjectMapper, getUnmarshaller, handler, process, process, protocol, proxypublic HDHRPrimeClient(String host)
host - The host IP or name.protected HDHRPrimeClient(HttpClientBuilder builder, String host)
builder - A configured HttpClientBuilder.host - The HDHR Prime host name or IP
(String).public HttpEntity getLineup(String type) throws Exception
type - The requested entity type.HttpEntity containing the line-up.Exception - If an exception is encountered invoking the
HDHRPrimeProtocol.getLineup(String,String).public List<LineupEntry> getLineup() throws Exception
List of LineupEntrys containing the
line-up.Exception - If an exception is encountered invoking the
HDHRPrimeProtocol.getLineup(String,String).public HttpEntity stream(Integer tuner, Integer channel, Integer duration) throws Exception
tuner - The tuner to use.channel - The channel to tune.duration - The time to stream in seconds.HttpEntity containing the stream.Exception - If an exception is encountered invoking the
HDHRPrimeProtocol.getLineup(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String).Copyright © 2015–2020 Allen D. Ball. All rights reserved.