org.mythtv.services.api.v026.impl
Class VideoTemplate

java.lang.Object
  extended by org.mythtv.services.api.AbstractOperations
      extended by org.mythtv.services.api.v026.impl.VideoTemplate
All Implemented Interfaces:
VideoOperations

public class VideoTemplate
extends AbstractOperations
implements VideoOperations


Nested Class Summary
static class VideoTemplate.Endpoint
           
 
Field Summary
 
Fields inherited from class org.mythtv.services.api.AbstractOperations
formatter
 
Constructor Summary
VideoTemplate(org.springframework.web.client.RestOperations restOperations, java.lang.String apiUrlBase)
           
 
Method Summary
 org.springframework.http.ResponseEntity<Bool> addVideo(java.lang.String filename, java.lang.String hostname)
          - POST
protected  java.lang.String getApiUrlBase()
           
 org.springframework.http.ResponseEntity<BlurayInfoWrapper> getBluray(java.lang.String path, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<VideoMetaDataInfoWrapper> getVideo(int id, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<VideoMetaDataInfoWrapper> getVideoByFilename(java.lang.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(java.lang.String title, java.lang.String subtitle, java.lang.String inetRef, int season, int episode, java.lang.String grabberType, boolean allowGeneric, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<Bool> removeVideoFromDatabase(int id)
          - POST
 
Methods inherited from class org.mythtv.services.api.AbstractOperations
buildUri, buildUri, buildUri, convertUtcAndFormat, getRequestEntity, handleResponseEtag, setLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoTemplate

public VideoTemplate(org.springframework.web.client.RestOperations restOperations,
                     java.lang.String apiUrlBase)
Method Detail

addVideo

public org.springframework.http.ResponseEntity<Bool> addVideo(java.lang.String filename,
                                                              java.lang.String hostname)
                                                       throws MythServiceApiRuntimeException
Description copied from interface: VideoOperations
- POST

Specified by:
addVideo in interface VideoOperations
Returns:
Throws:
MythServiceApiRuntimeException

getBluray

public org.springframework.http.ResponseEntity<BlurayInfoWrapper> getBluray(java.lang.String path,
                                                                            ETagInfo etag)
                                                                     throws MythServiceApiRuntimeException
Description copied from interface: VideoOperations
- GET

Specified by:
getBluray in interface VideoOperations
Returns:
Throws:
MythServiceApiRuntimeException

getVideo

public org.springframework.http.ResponseEntity<VideoMetaDataInfoWrapper> getVideo(int id,
                                                                                  ETagInfo etag)
                                                                           throws MythServiceApiRuntimeException
Description copied from interface: VideoOperations
- GET

Specified by:
getVideo in interface VideoOperations
Returns:
Throws:
MythServiceApiRuntimeException

getVideoByFilename

public org.springframework.http.ResponseEntity<VideoMetaDataInfoWrapper> getVideoByFilename(java.lang.String filename,
                                                                                            ETagInfo etag)
                                                                                     throws MythServiceApiRuntimeException
Description copied from interface: VideoOperations
- GET

Specified by:
getVideoByFilename in interface VideoOperations
Returns:
Throws:
MythServiceApiRuntimeException

getVideoList

public org.springframework.http.ResponseEntity<VideoMetadataInfoList> getVideoList(boolean descending,
                                                                                   int startIndex,
                                                                                   int count,
                                                                                   ETagInfo etag)
                                                                            throws MythServiceApiRuntimeException
Description copied from interface: VideoOperations
- GET

Specified by:
getVideoList in interface VideoOperations
Returns:
Throws:
MythServiceApiRuntimeException

lookupVideo

public org.springframework.http.ResponseEntity<VideoLookupList> lookupVideo(java.lang.String title,
                                                                            java.lang.String subtitle,
                                                                            java.lang.String inetRef,
                                                                            int season,
                                                                            int episode,
                                                                            java.lang.String grabberType,
                                                                            boolean allowGeneric,
                                                                            ETagInfo etag)
                                                                     throws MythServiceApiRuntimeException
Description copied from interface: VideoOperations
- GET

Specified by:
lookupVideo in interface VideoOperations
Returns:
Throws:
MythServiceApiRuntimeException

removeVideoFromDatabase

public org.springframework.http.ResponseEntity<Bool> removeVideoFromDatabase(int id)
Description copied from interface: VideoOperations
- POST

Specified by:
removeVideoFromDatabase in interface VideoOperations
Returns:

getApiUrlBase

protected java.lang.String getApiUrlBase()
Overrides:
getApiUrlBase in class AbstractOperations
Returns: