org.mythtv.services.api
Class AbstractOperations

java.lang.Object
  extended by org.mythtv.services.api.AbstractOperations
Direct Known Subclasses:
CaptureTemplate, ChannelTemplate, ContentTemplate, DvrTemplate, FrontendTemplate, GuideTemplate, MythTemplate, VideoTemplate

public abstract class AbstractOperations
extends Object

Author:
Daniel Frey

Field Summary
protected static org.joda.time.format.DateTimeFormatter formatter
           
 
Constructor Summary
AbstractOperations(String apiUrlBase)
           
 
Method Summary
protected  URI buildUri(String path)
           
protected  URI buildUri(String path, org.springframework.util.MultiValueMap<String,String> parameters)
           
protected  URI buildUri(String path, String parameterName, String parameterValue)
           
protected  String convertUtcAndFormat(org.joda.time.DateTime dt)
           
protected  String getApiUrlBase()
           
protected  org.springframework.http.HttpEntity<?> getRequestEntity(ETagInfo info)
           
protected  void handleResponseEtag(ETagInfo etagInfo, org.springframework.http.HttpHeaders headers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formatter

protected static final org.joda.time.format.DateTimeFormatter formatter
Constructor Detail

AbstractOperations

public AbstractOperations(String apiUrlBase)
Parameters:
apiUrlBase -
Method Detail

buildUri

protected URI buildUri(String path)
Parameters:
path -
Returns:

buildUri

protected URI buildUri(String path,
                       String parameterName,
                       String parameterValue)
Parameters:
path -
parameterName -
parameterValue -
Returns:

buildUri

protected URI buildUri(String path,
                       org.springframework.util.MultiValueMap<String,String> parameters)
Parameters:
path -
parameters -
Returns:

getApiUrlBase

protected String getApiUrlBase()
Returns:

getRequestEntity

protected org.springframework.http.HttpEntity<?> getRequestEntity(ETagInfo info)
Returns:
the requestEntity

handleResponseEtag

protected void handleResponseEtag(ETagInfo etagInfo,
                                  org.springframework.http.HttpHeaders headers)

convertUtcAndFormat

protected String convertUtcAndFormat(org.joda.time.DateTime dt)


Copyright © 2012. All Rights Reserved.