|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mythtv.services.api.AbstractOperations
org.mythtv.services.api.content.impl.ContentTemplate
public class ContentTemplate
| Nested Class Summary | |
|---|---|
static class |
ContentTemplate.Endpoint
|
| Field Summary |
|---|
| Fields inherited from class org.mythtv.services.api.AbstractOperations |
|---|
formatter |
| Constructor Summary | |
|---|---|
ContentTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase)
|
|
| Method Summary | |
|---|---|
org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> |
addLiveStream(String storageGroup,
String filename,
String hostname,
int maxSegments,
int width,
int height,
int bitrate,
int audioBitrate,
int sampleRate)
- GET |
org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> |
addRecordingLiveStream(int channelId,
org.joda.time.DateTime startTime,
int maxSegments,
int width,
int height,
int bitrate,
int audioBitrate,
int sampleRate)
- GET |
org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> |
addVideoLiveStream(int id,
int maxSegments,
int width,
int height,
int bitrate,
int audioBitrate,
int sampleRate)
- GET |
org.springframework.http.ResponseEntity<Bool> |
downloadFile(String url,
String storageGroup,
ETagInfo etag)
- POST |
org.springframework.http.ResponseEntity<byte[]> |
getAlbumArt(int id,
int width,
int height,
ETagInfo etag)
- GET |
protected String |
getApiUrlBase()
|
org.springframework.http.ResponseEntity<byte[]> |
getFile(String storageGroup,
String filename,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<StringList> |
getFileList(String storageGroup,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<LiveStreamInfos> |
getFilteredLiveStreamList(String filename,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<String> |
getHash(String storageGroup,
String filename,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<byte[]> |
getImageFile(String storageGroup,
String filename,
int width,
int height,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> |
getLiveStream(int id,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<LiveStreamInfos> |
getLiveStreamList(ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<byte[]> |
getMusic(int id,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<byte[]> |
getPreviewImage(int channelId,
org.joda.time.DateTime startTime,
int width,
int height,
int secondsIn,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<ArtworkInfos> |
getProgramArtworkList(String inetRef,
int season,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<byte[]> |
getRecording(int channelId,
org.joda.time.DateTime startTime,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<byte[]> |
getRecordingArtwork(String type,
String inetRef,
int season,
int width,
int height,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<ArtworkInfoList> |
getRecordingArtworkList(int channelId,
org.joda.time.DateTime startTime,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<byte[]> |
getVideo(int id,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<byte[]> |
getVideoArtwork(String type,
int id,
int width,
int height,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<Bool> |
removeLiveStream(int id)
- GET |
org.springframework.http.ResponseEntity<LiveStreamInfo> |
stopLiveStream(int id)
- GET |
| Methods inherited from class org.mythtv.services.api.AbstractOperations |
|---|
buildUri, buildUri, buildUri, convertUtcAndFormat, getRequestEntity, handleResponseEtag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase)
| Method Detail |
|---|
public org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> addLiveStream(String storageGroup,
String filename,
String hostname,
int maxSegments,
int width,
int height,
int bitrate,
int audioBitrate,
int sampleRate)
throws MythServiceApiRuntimeException
ContentOperations
addLiveStream in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> addRecordingLiveStream(int channelId,
org.joda.time.DateTime startTime,
int maxSegments,
int width,
int height,
int bitrate,
int audioBitrate,
int sampleRate)
throws MythServiceApiRuntimeException
ContentOperations
addRecordingLiveStream in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> addVideoLiveStream(int id,
int maxSegments,
int width,
int height,
int bitrate,
int audioBitrate,
int sampleRate)
throws MythServiceApiRuntimeException
ContentOperations
addVideoLiveStream in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> downloadFile(String url,
String storageGroup,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
downloadFile in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<byte[]> getAlbumArt(int id,
int width,
int height,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getAlbumArt in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<byte[]> getFile(String storageGroup,
String filename,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getFile in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<StringList> getFileList(String storageGroup,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getFileList in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<LiveStreamInfos> getFilteredLiveStreamList(String filename,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getFilteredLiveStreamList in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<String> getHash(String storageGroup,
String filename,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getHash in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<byte[]> getImageFile(String storageGroup,
String filename,
int width,
int height,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getImageFile in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> getLiveStream(int id,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getLiveStream in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<LiveStreamInfos> getLiveStreamList(ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getLiveStreamList in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<byte[]> getMusic(int id,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getMusic in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<byte[]> getPreviewImage(int channelId,
org.joda.time.DateTime startTime,
int width,
int height,
int secondsIn,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getPreviewImage in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<ArtworkInfos> getProgramArtworkList(String inetRef,
int season,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getProgramArtworkList in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<byte[]> getRecording(int channelId,
org.joda.time.DateTime startTime,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getRecording in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<byte[]> getRecordingArtwork(String type,
String inetRef,
int season,
int width,
int height,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getRecordingArtwork in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<ArtworkInfoList> getRecordingArtworkList(int channelId,
org.joda.time.DateTime startTime,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getRecordingArtworkList in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<byte[]> getVideo(int id,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getVideo in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<byte[]> getVideoArtwork(String type,
int id,
int width,
int height,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperations
getVideoArtwork in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> removeLiveStream(int id)
throws MythServiceApiRuntimeException
ContentOperations
removeLiveStream in interface ContentOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<LiveStreamInfo> stopLiveStream(int id)
throws MythServiceApiRuntimeException
ContentOperations
stopLiveStream in interface ContentOperationsMythServiceApiRuntimeExceptionprotected String getApiUrlBase()
getApiUrlBase in class AbstractOperations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||