|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mythtv.services.api.connect.MythAccessFactory
public class MythAccessFactory
| Constructor Summary | |
|---|---|
MythAccessFactory()
|
|
| Method Summary | ||
|---|---|---|
static ApiVersion |
getMythVersion(java.lang.String baseUri)
Gets the api version of the given backend |
|
static
|
getServiceTemplateApiByType(java.lang.Class<T> serviceClass,
java.lang.String baseUri)
Get the service interface instance by inferring the mythtv version by providing the service class |
|
static
|
getServiceTemplateApiByType(java.lang.Class<T> serviceClass,
java.lang.String baseUri,
java.util.logging.Level logLevel)
Get the service interface instance by inferring the mythtv version by providing the service class |
|
static java.lang.Object |
getServiceTemplateApiByVersion(ApiVersion version,
java.lang.String baseUri)
Get the service interface instance by using the mythtv version |
|
static java.lang.Object |
getServiceTemplateApiByVersion(ApiVersion version,
java.lang.String baseUri,
java.util.logging.Level logLevel)
Get the service interface instance by using the mythtv version |
|
static boolean |
isServerReachable(java.lang.String baseUrl)
Check if the server is reachable |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MythAccessFactory()
| Method Detail |
|---|
public static <T> T getServiceTemplateApiByType(java.lang.Class<T> serviceClass,
java.lang.String baseUri,
java.util.logging.Level logLevel)
serviceClass - the service class to use to infer the backend versionbaseUri - the backend base urilogLevel - the logging level to use
public static <T> T getServiceTemplateApiByType(java.lang.Class<T> serviceClass,
java.lang.String baseUri)
serviceClass - the service class to use to infer the backend versionbaseUri - the backend base uri
public static java.lang.Object getServiceTemplateApiByVersion(ApiVersion version,
java.lang.String baseUri)
version - the version to usebaseUri - the backend base uri
public static java.lang.Object getServiceTemplateApiByVersion(ApiVersion version,
java.lang.String baseUri,
java.util.logging.Level logLevel)
version - the version to usebaseUri - the backend base urilogLevel - the logging level to use
public static ApiVersion getMythVersion(java.lang.String baseUri)
baseUri - the backend services api url
public static boolean isServerReachable(java.lang.String baseUrl)
baseUrl - The url of the server to test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||