Package co.arago.hiro.client.rest
Class AppAPI
- java.lang.Object
-
- co.arago.hiro.client.connection.AbstractAPIHandler
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler
-
- co.arago.hiro.client.rest.AppAPI
-
public class AppAPI extends AuthenticatedAPIHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAppAPI.Builderstatic classAppAPI.Conf<T extends AppAPI.Conf<T>>classAppAPI.GetApplicationCommandGet an applicationclassAppAPI.GetConfigCommandGet an application instance configclassAppAPI.GetContentCommandGet the content of an applicationclassAppAPI.GetDesktopApplicationsCommandReturns a list of all visible desktop applicationsclassAppAPI.GetManifestCommandGet a manifest of the content of an application-
Nested classes/interfaces inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler
AuthenticatedAPIHandler.APIRequestConf<T extends AuthenticatedAPIHandler.APIRequestConf<T,R>,R>, AuthenticatedAPIHandler.SendBodyAPIRequestConf<T extends AuthenticatedAPIHandler.SendBodyAPIRequestConf<T,R>,R>, AuthenticatedAPIHandler.SendStreamAPIRequestConf<T extends AuthenticatedAPIHandler.SendStreamAPIRequestConf<T,R>,R>
-
-
Field Summary
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler
apiName, apiPath, apiURI, tokenAPIHandler
-
Fields inherited from class co.arago.hiro.client.connection.AbstractAPIHandler
httpClientHandler, httpRequestTimeout, maxRetries, rootApiURI, title, userAgent, version, webSocketURI
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAppAPI(AppAPI.Conf<?> builder)Protected constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AppAPI.GetApplicationCommandgetApplicationCommand(java.lang.String ogitId)Get an applicationAppAPI.GetConfigCommandgetConfigCommand()Get an application instance configAppAPI.GetContentCommandgetContentCommand(java.lang.String ogitId, java.lang.String... path)Get the content of an applicationAppAPI.GetDesktopApplicationsCommandgetDesktopApplicationsCommand()Returns a list of all visible desktop applicationsAppAPI.GetManifestCommandgetManifestCommand(java.lang.String ogitId)Get a manifest of the content of an applicationstatic AppAPI.Conf<?>newBuilder(TokenAPIHandler tokenAPIHandler)Get aAppAPI.BuilderforAppAPI.-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler
addToHeaders, checkResponse, getEndpointURI
-
Methods inherited from class co.arago.hiro.client.connection.AbstractAPIHandler
addQueryFragmentAndNormalize, buildApiURI, buildEndpointURI, buildURI, buildWebSocketURI, delete, executeAsyncWithStreamBody, executeAsyncWithStringBody, executeBinary, executeWithStreamBody, executeWithStringBody, get, getBinary, getConf, getHttpLogger, getHttpRequestTimeout, getMaxRetries, getOrBuildClient, getRequestBuilder, getRootApiURI, getUserAgent, getWebSocketURI, patch, patchBinary, post, postBinary, put, putBinary, send, sendAsync
-
-
-
-
Constructor Detail
-
AppAPI
protected AppAPI(AppAPI.Conf<?> builder)
Protected constructor. Create thisAppAPIby using itsAppAPI.Builder.- Parameters:
builder- The builder to use.
-
-
Method Detail
-
newBuilder
public static AppAPI.Conf<?> newBuilder(TokenAPIHandler tokenAPIHandler)
Get aAppAPI.BuilderforAppAPI.- Parameters:
tokenAPIHandler- The API handler for this websocket.- Returns:
- The
AppAPI.BuilderforAppAPI.
-
getApplicationCommand
public AppAPI.GetApplicationCommand getApplicationCommand(java.lang.String ogitId)
Get an applicationAPI GET /api/app/[version]/{ogit\_id}
- Parameters:
ogitId- ogit/_id of the app.- Returns:
- New instance of the command. Use method "execute()" after all parameters have been set to run the command.
- See Also:
- API Documentation
-
getConfigCommand
public AppAPI.GetConfigCommand getConfigCommand()
Get an application instance configAPI GET /api/app/[version]/config
- Returns:
- New instance of the command. Use method "execute()" after all parameters have been set to run the command.
- See Also:
- API Documentation
-
getContentCommand
public AppAPI.GetContentCommand getContentCommand(java.lang.String ogitId, java.lang.String... path)
Get the content of an applicationAPI GET /api/app/[version]/{ogit/_id}/content/{path}
- Parameters:
ogitId- ogit/_id of the app.path- Path parts for the subcontent.- Returns:
- New instance of the command. Use method "execute()" after all parameters have been set to run the command.
- See Also:
- API Documentation
-
getManifestCommand
public AppAPI.GetManifestCommand getManifestCommand(java.lang.String ogitId)
Get a manifest of the content of an applicationAPI GET /api/app/[version]/{ogit/_id}/manifest
- Parameters:
ogitId- ogit/_id of the app.- Returns:
- New instance of the command. Use method "execute()" after all parameters have been set to run the command.
- See Also:
- API Documentation
-
getDesktopApplicationsCommand
public AppAPI.GetDesktopApplicationsCommand getDesktopApplicationsCommand()
Returns a list of all visible desktop applicationsAPI GET /api/app/[version]/desktop
- Returns:
- New instance of the command. Use method "execute()" after all parameters have been set to run the command.
- See Also:
- API Documentation
-
-