public class VideoTemplate extends AbstractOperations implements VideoOperations
formatter| Constructor and Description |
|---|
VideoTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Bool> |
addVideo(String filename,
String hostname)
- POST
|
protected String |
getApiUrlBase() |
org.springframework.http.ResponseEntity<BlurayInfoWrapper> |
getBluray(String path,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<VideoMetaDataInfoWrapper> |
getVideo(int id,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<VideoMetaDataInfoWrapper> |
getVideoByFilename(String filename,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<VideoMetadataInfoList> |
getVideoList(boolean descending,
int startIndex,
int count,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<VideoLookupList> |
lookupVideo(String title,
String subtitle,
String inetRef,
int season,
int episode,
String grabberType,
boolean allowGeneric,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<Bool> |
removeVideoFromDatabase(int id)
- POST
|
buildUri, buildUri, buildUri, convertUtcAndFormat, getRequestEntity, handleResponseEtagpublic VideoTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase)
public org.springframework.http.ResponseEntity<Bool> addVideo(String filename, String hostname) throws MythServiceApiRuntimeException
VideoOperationsaddVideo in interface VideoOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<BlurayInfoWrapper> getBluray(String path, ETagInfo etag) throws MythServiceApiRuntimeException
VideoOperationsgetBluray in interface VideoOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<VideoMetaDataInfoWrapper> getVideo(int id, ETagInfo etag) throws MythServiceApiRuntimeException
VideoOperationsgetVideo in interface VideoOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<VideoMetaDataInfoWrapper> getVideoByFilename(String filename, ETagInfo etag) throws MythServiceApiRuntimeException
VideoOperationsgetVideoByFilename in interface VideoOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<VideoMetadataInfoList> getVideoList(boolean descending, int startIndex, int count, ETagInfo etag) throws MythServiceApiRuntimeException
VideoOperationsgetVideoList in interface VideoOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<VideoLookupList> lookupVideo(String title, String subtitle, String inetRef, int season, int episode, String grabberType, boolean allowGeneric, ETagInfo etag) throws MythServiceApiRuntimeException
VideoOperationslookupVideo in interface VideoOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> removeVideoFromDatabase(int id)
VideoOperationsremoveVideoFromDatabase in interface VideoOperationsprotected String getApiUrlBase()
getApiUrlBase in class AbstractOperationsCopyright © 2012. All Rights Reserved.