|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mythtv.services.api.AbstractOperations
org.mythtv.services.api.v026.impl.MythTemplate
public class MythTemplate
| Nested Class Summary | |
|---|---|
static class |
MythTemplate.Endpoint
|
| Field Summary |
|---|
| Fields inherited from class org.mythtv.services.api.AbstractOperations |
|---|
formatter |
| Constructor Summary | |
|---|---|
MythTemplate(org.springframework.web.client.RestOperations restOperations,
java.lang.String apiUrlBase)
|
|
| Method Summary | |
|---|---|
org.springframework.http.ResponseEntity<Bool> |
addStorageGroupDir(java.lang.String groupName,
java.lang.String directoryName,
java.lang.String hostName)
- POST |
org.springframework.http.ResponseEntity<Bool> |
backupDatabase()
- POST |
org.springframework.http.ResponseEntity<Bool> |
changePassword(java.lang.String username,
java.lang.String oldPassword,
java.lang.String newPassword)
- POST |
org.springframework.http.ResponseEntity<Bool> |
checkDatabase(boolean repair)
- POST |
protected java.lang.String |
getApiUrlBase()
|
org.springframework.http.ResponseEntity<ConnectionInfo> |
getConnectionInfo(java.lang.String pin,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<StringWrapper> |
getHostName()
- GET |
org.springframework.http.ResponseEntity<StringList> |
getHosts(ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<StringList> |
getKeys(ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<LogMessageList> |
getLogs(java.lang.String hostname,
java.lang.String application,
int pid,
int tid,
java.lang.String thread,
java.lang.String filename,
int line,
java.lang.String function,
org.joda.time.DateTime from,
org.joda.time.DateTime to,
java.lang.String level,
java.lang.String messageContains,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<SettingList> |
getSetting(java.lang.String hostname,
java.lang.String key,
java.lang.String defaultValue,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<StorageGroupDirectoryList> |
getStorageGroupDirectories(java.lang.String groupName,
java.lang.String hostname,
ETagInfo etag)
- GET |
org.springframework.http.ResponseEntity<TimeZoneInfo> |
getTimeZoneInfo()
- GET |
org.springframework.http.ResponseEntity<Bool> |
profileDelete()
- POST |
org.springframework.http.ResponseEntity<Bool> |
profileSubmit()
- POST |
org.springframework.http.ResponseEntity<StringWrapper> |
profileText()
- GET |
org.springframework.http.ResponseEntity<StringWrapper> |
profileUpdated()
- GET |
org.springframework.http.ResponseEntity<StringWrapper> |
profileUrl()
- GET |
org.springframework.http.ResponseEntity<Bool> |
putSetting(java.lang.String hostname,
java.lang.String key,
java.lang.String value)
- POST |
org.springframework.http.ResponseEntity<Bool> |
removeStorageGroupDir(java.lang.String groupName,
java.lang.String directoryName,
java.lang.String hostName)
- POST |
org.springframework.http.ResponseEntity<Bool> |
sendMessage(java.lang.String message,
java.lang.String address,
int udpPort,
int timeout)
- GET |
org.springframework.http.ResponseEntity<Bool> |
testDatabaseSettings(java.lang.String hostname,
java.lang.String username,
java.lang.String password,
java.lang.String databaseName,
int databasePort)
- 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 |
|---|
public MythTemplate(org.springframework.web.client.RestOperations restOperations,
java.lang.String apiUrlBase)
| Method Detail |
|---|
public org.springframework.http.ResponseEntity<Bool> addStorageGroupDir(java.lang.String groupName,
java.lang.String directoryName,
java.lang.String hostName)
throws MythServiceApiRuntimeException
MythOperations
addStorageGroupDir in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> backupDatabase()
throws MythServiceApiRuntimeException
MythOperations
backupDatabase in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> changePassword(java.lang.String username,
java.lang.String oldPassword,
java.lang.String newPassword)
throws MythServiceApiRuntimeException
MythOperations
changePassword in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> checkDatabase(boolean repair)
throws MythServiceApiRuntimeException
MythOperations
checkDatabase in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<ConnectionInfo> getConnectionInfo(java.lang.String pin,
ETagInfo etag)
throws MythServiceApiRuntimeException
MythOperations
getConnectionInfo in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<StringWrapper> getHostName()
throws MythServiceApiRuntimeException
MythOperations
getHostName in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<StringList> getHosts(ETagInfo etag)
throws MythServiceApiRuntimeException
MythOperations
getHosts in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<StringList> getKeys(ETagInfo etag)
throws MythServiceApiRuntimeException
MythOperations
getKeys in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<LogMessageList> getLogs(java.lang.String hostname,
java.lang.String application,
int pid,
int tid,
java.lang.String thread,
java.lang.String filename,
int line,
java.lang.String function,
org.joda.time.DateTime from,
org.joda.time.DateTime to,
java.lang.String level,
java.lang.String messageContains,
ETagInfo etag)
throws MythServiceApiRuntimeException
MythOperations
getLogs in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<SettingList> getSetting(java.lang.String hostname,
java.lang.String key,
java.lang.String defaultValue,
ETagInfo etag)
throws MythServiceApiRuntimeException
MythOperations
getSetting in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<StorageGroupDirectoryList> getStorageGroupDirectories(java.lang.String groupName,
java.lang.String hostname,
ETagInfo etag)
throws MythServiceApiRuntimeException
MythOperations
getStorageGroupDirectories in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<TimeZoneInfo> getTimeZoneInfo()
throws MythServiceApiRuntimeException
MythOperations
getTimeZoneInfo in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> profileDelete()
throws MythServiceApiRuntimeException
MythOperations
profileDelete in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> profileSubmit()
throws MythServiceApiRuntimeException
MythOperations
profileSubmit in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<StringWrapper> profileText()
throws MythServiceApiRuntimeException
MythOperations
profileText in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<StringWrapper> profileUrl()
throws MythServiceApiRuntimeException
MythOperations
profileUrl in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<StringWrapper> profileUpdated()
throws MythServiceApiRuntimeException
MythOperations
profileUpdated in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> putSetting(java.lang.String hostname,
java.lang.String key,
java.lang.String value)
throws MythServiceApiRuntimeException
MythOperations
putSetting in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> removeStorageGroupDir(java.lang.String groupName,
java.lang.String directoryName,
java.lang.String hostName)
throws MythServiceApiRuntimeException
MythOperations
removeStorageGroupDir in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> sendMessage(java.lang.String message,
java.lang.String address,
int udpPort,
int timeout)
throws MythServiceApiRuntimeException
MythOperations
sendMessage in interface MythOperationsMythServiceApiRuntimeException
public org.springframework.http.ResponseEntity<Bool> testDatabaseSettings(java.lang.String hostname,
java.lang.String username,
java.lang.String password,
java.lang.String databaseName,
int databasePort)
throws MythServiceApiRuntimeException
MythOperations
testDatabaseSettings in interface MythOperationsMythServiceApiRuntimeExceptionprotected java.lang.String getApiUrlBase()
getApiUrlBase in class AbstractOperations
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||