org.mythtv.services.api
Class AbstractOperations
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
formatter
protected static final org.joda.time.format.DateTimeFormatter formatter
AbstractOperations
public AbstractOperations(String apiUrlBase)
- Parameters:
apiUrlBase -
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.