public class ContentTemplate extends AbstractOperations implements ContentOperations
formatter| Constructor and Description |
|---|
ContentTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase) |
| Modifier and Type | Method and Description |
|---|---|
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
|
buildUri, buildUri, buildUri, convertUtcAndFormat, getRequestEntity, handleResponseEtagpublic ContentTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase)
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
ContentOperationsaddLiveStream in interface ContentOperationsMythServiceApiRuntimeExceptionpublic 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
ContentOperationsaddRecordingLiveStream in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> addVideoLiveStream(int id, int maxSegments, int width, int height, int bitrate, int audioBitrate, int sampleRate) throws MythServiceApiRuntimeException
ContentOperationsaddVideoLiveStream in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> downloadFile(String url, String storageGroup, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsdownloadFile in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<byte[]> getAlbumArt(int id,
int width,
int height,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperationsgetAlbumArt in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<byte[]> getFile(String storageGroup, String filename, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetFile in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<StringList> getFileList(String storageGroup, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetFileList in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<LiveStreamInfos> getFilteredLiveStreamList(String filename, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetFilteredLiveStreamList in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<String> getHash(String storageGroup, String filename, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetHash in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<byte[]> getImageFile(String storageGroup, String filename, int width, int height, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetImageFile in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<LiveStreamInfoWrapper> getLiveStream(int id, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetLiveStream in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<LiveStreamInfos> getLiveStreamList(ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetLiveStreamList in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<byte[]> getMusic(int id,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperationsgetMusic in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<byte[]> getPreviewImage(int channelId,
org.joda.time.DateTime startTime,
int width,
int height,
int secondsIn,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperationsgetPreviewImage in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<ArtworkInfos> getProgramArtworkList(String inetRef, int season, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetProgramArtworkList in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<byte[]> getRecording(int channelId,
org.joda.time.DateTime startTime,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperationsgetRecording in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<byte[]> getRecordingArtwork(String type, String inetRef, int season, int width, int height, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetRecordingArtwork in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<ArtworkInfoList> getRecordingArtworkList(int channelId, org.joda.time.DateTime startTime, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetRecordingArtworkList in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<byte[]> getVideo(int id,
ETagInfo etag)
throws MythServiceApiRuntimeException
ContentOperationsgetVideo in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<byte[]> getVideoArtwork(String type, int id, int width, int height, ETagInfo etag) throws MythServiceApiRuntimeException
ContentOperationsgetVideoArtwork in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> removeLiveStream(int id) throws MythServiceApiRuntimeException
ContentOperationsremoveLiveStream in interface ContentOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<LiveStreamInfo> stopLiveStream(int id) throws MythServiceApiRuntimeException
ContentOperationsstopLiveStream in interface ContentOperationsMythServiceApiRuntimeExceptionprotected String getApiUrlBase()
getApiUrlBase in class AbstractOperationsCopyright © 2012. All Rights Reserved.