Uses of Class
co.arago.hiro.client.exceptions.HiroException
-
-
Uses of HiroException in co.arago.hiro.client.connection
Methods in co.arago.hiro.client.connection that throw HiroException Modifier and Type Method Description abstract voidAbstractAPIHandler. addToHeaders(java.util.Map<java.lang.String,java.lang.String> headers)Override this to add authentication tokens.booleanAbstractAPIHandler. checkResponse(java.net.http.HttpResponse<java.io.InputStream> httpResponse, int retryCount)The default way to check responses for errors and extract error messages.<T extends HiroMessage>
TAbstractAPIHandler. delete(java.lang.Class<T> clazz, java.net.URI uri, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic DELETE method which returns a Map constructed via a JSON body httpResponse.java.util.concurrent.CompletableFuture<HttpResponseParser>AbstractAPIHandler. executeAsyncWithStreamBody(java.net.URI uri, java.lang.String method, StreamContainer bodyContainer, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout)Method to communicate asynchronously via InputStreams.java.util.concurrent.CompletableFuture<HttpResponseParser>AbstractAPIHandler. executeAsyncWithStringBody(java.net.URI uri, java.lang.String method, java.lang.String body, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout)Method to communicate asynchronously via String body.HttpResponseParserAbstractAPIHandler. executeBinary(java.net.URI uri, java.lang.String method, StreamContainer bodyContainer, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Method to communicate via InputStreams.<T extends HiroMessage>
TAbstractAPIHandler. executeWithStreamBody(java.lang.Class<T> clazz, java.net.URI uri, java.lang.String method, StreamContainer bodyContainer, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic method which returns an object of typeHiroMessageconstructed via a JSON body httpResponse.<T extends HiroMessage>
TAbstractAPIHandler. executeWithStringBody(java.lang.Class<T> clazz, java.net.URI uri, java.lang.String method, java.lang.String body, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic method which returns an object of typeHiroMessageconstructed via a JSON body httpResponse.<T extends HiroMessage>
TAbstractAPIHandler. get(java.lang.Class<T> clazz, java.net.URI uri, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic GET method which returns a Map constructed via a JSON body httpResponse.java.net.URIAbstractVersionAPIHandler. getApiUriOf(java.lang.String apiName)Determine the API URI path for a named API.HttpResponseParserAbstractAPIHandler. getBinary(java.net.URI uri, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic GET method which returns an InputStream from the body of the httpResponse.java.net.http.HttpRequest.BuilderAbstractAPIHandler. getRequestBuilder(java.net.URI uri, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout)Create a HttpRequest.Builder with common options and headers.VersionResponseAbstractVersionAPIHandler. getVersionMap()Returns the currentAbstractVersionAPIHandler.versionMap.<T extends HiroMessage>
TAbstractAPIHandler. patch(java.lang.Class<T> clazz, java.net.URI uri, java.lang.String body, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic PATCH method which returns a Map constructed via a JSON body httpResponse.<T extends HiroMessage>
TAbstractAPIHandler. patchBinary(java.lang.Class<T> clazz, java.net.URI uri, StreamContainer body, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic PATCH method which sends an InputStream.<T extends HiroMessage>
TAbstractAPIHandler. post(java.lang.Class<T> clazz, java.net.URI uri, java.lang.String body, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic POST method which returns a Map constructed via a JSON body httpResponse.<T extends HiroMessage>
TAbstractAPIHandler. postBinary(java.lang.Class<T> clazz, java.net.URI uri, StreamContainer body, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic POST method which sends an InputStream.<T extends HiroMessage>
TAbstractAPIHandler. put(java.lang.Class<T> clazz, java.net.URI uri, java.lang.String body, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic PUT method which returns a Map constructed via a JSON body httpResponse.<T extends HiroMessage>
TAbstractAPIHandler. putBinary(java.lang.Class<T> clazz, java.net.URI uri, StreamContainer body, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.Long httpRequestTimeout, java.lang.Integer maxRetries)Basic PUT method which sends an InputStream.protected VersionResponseAbstractVersionAPIHandler. requestVersionMap()Get API Versionsjava.net.http.HttpResponse<java.io.InputStream>AbstractAPIHandler. send(java.net.http.HttpRequest httpRequest, java.lang.Integer maxRetries)Send a HttpRequest synchronously and return the httpResponse -
Uses of HiroException in co.arago.hiro.client.connection.token
Methods in co.arago.hiro.client.connection.token that throw HiroException Modifier and Type Method Description booleanPasswordAuthTokenAPIHandler. checkResponse(java.net.http.HttpResponse<java.io.InputStream> httpResponse, int retryCount)Check for the kind of error.DecodedTokenAbstractTokenAPIHandler. decodeToken()Decode the payload part of a token.abstract java.lang.StringAbstractTokenAPIHandler. getToken()Return the current token.java.lang.StringPasswordAuthTokenAPIHandler. getToken()Return the current token.java.net.URIPasswordAuthTokenAPIHandler. getUri(java.lang.String path)Construct my URI.abstract voidAbstractTokenAPIHandler. refreshToken()Refresh an invalid token.voidEnvironmentTokenAPIHandler. refreshToken()Refresh an invalid token.voidFixedTokenAPIHandler. refreshToken()Refresh an invalid token.voidPasswordAuthTokenAPIHandler. refreshToken()Refresh an invalid token.protected voidPasswordAuthTokenAPIHandler. requestToken()Obtain a new token from the auth API.abstract voidAbstractTokenAPIHandler. revokeToken()Revoke a tokenvoidEnvironmentTokenAPIHandler. revokeToken()Revoke a tokenvoidFixedTokenAPIHandler. revokeToken()Revoke a tokenvoidPasswordAuthTokenAPIHandler. revokeToken()Revoke a token. -
Uses of HiroException in co.arago.hiro.client.exceptions
Subclasses of HiroException in co.arago.hiro.client.exceptions Modifier and Type Class Description classAuthenticationTokenExceptionAn exception with authentication for HIROclassFixedTokenExceptionUsed when tokens are fixed and cannot be refreshed.classHiroHttpExceptiona base exception for HIRO, contains an error codeclassRefreshTokenWebSocketExceptionUsed when tokens expire with error 401.classRetryExceptionException to signal a connection retryclassTokenUnauthorizedExceptionUsed when tokens expire with error 401.classUnauthorizedWebSocketExceptionUsed when tokens expire with error 401.classWebSocketExceptionGeneric Exception for WebSocketsclassWebSocketMessageExceptionA base exception for WebSockets. -
Uses of HiroException in co.arago.hiro.client.model
Methods in co.arago.hiro.client.model that throw HiroException Modifier and Type Method Description VersionResponse.VersionEntryVersionResponse. getVersionEntryOf(java.lang.String apiName) -
Uses of HiroException in co.arago.hiro.client.rest
Methods in co.arago.hiro.client.rest that throw HiroException Modifier and Type Method Description voidAuthenticatedAPIHandler. addToHeaders(java.util.Map<java.lang.String,java.lang.String> headers)Add Authorization.booleanAuthenticatedAPIHandler. checkResponse(java.net.http.HttpResponse<java.io.InputStream> httpResponse, int retryCount)Checks forTokenUnauthorizedExceptionandHiroHttpExceptionuntilAbstractAPIHandler.maxRetriesis exhausted.HiroVertexMessageAppAPI.GetApplicationCommand. execute()HiroMessageAppAPI.GetConfigCommand. execute()HttpResponseParserAppAPI.GetContentCommand. execute()HiroVertexListMessageAppAPI.GetDesktopApplicationsCommand. execute()HiroMessageAppAPI.GetManifestCommand. execute()HiroVertexMessageAuthAPI.GetMeAccountCommand. execute()HttpResponseParserAuthAPI.GetMeAvatarCommand. execute()HiroVertexMessageAuthAPI.GetMeProfileCommand. execute()HiroMessageAuthAPI.GetMeRolesCommand. execute()HiroVertexListMessageAuthAPI.GetMeTeamsCommand. execute()HiroVertexMessageAuthAPI.PostMeProfileCommand. execute()java.lang.StringAuthAPI.PutMeAvatarCommand. execute()HiroVertexMessageAuthAPI.PutMePasswordCommand. execute()abstract RAuthenticatedAPIHandler.APIRequestConf. execute()HiroVertexMessageGraphAPI.CreateEntityCommand. execute()HiroVertexMessageGraphAPI.DeleteEntityCommand. execute()HttpResponseParserGraphAPI.GetBlobCommand. execute()HiroVertexMessageGraphAPI.GetEntityCommand. execute()DefaultHiroItemListMessageGraphAPI.GetHistoryCommand. execute()HiroTimeseriesListMessageGraphAPI.GetTimeseriesCommand. execute()HiroMessageGraphAPI.GetTimeseriesHistoryCommand. execute()HiroMessageGraphAPI.PostBlobCommand. execute()HiroMessageGraphAPI.PostTimeseriesCommand. execute()HiroVertexMessageGraphAPI.PostVerbCommand. execute()HiroVertexListMessageGraphAPI.QueryByIdsCommand. execute()HiroVertexListMessageGraphAPI.QueryByXidCommand. execute()HiroVertexListMessageGraphAPI.QueryGremlinCommand. execute()HiroVertexListMessageGraphAPI.QueryTimeseriesCommand. execute()HiroVertexListMessageGraphAPI.QueryVerticesCommand. execute()HiroVertexMessageGraphAPI.UpdateEntityCommand. execute()java.net.URIAuthenticatedAPIHandler. getEndpointUri(URIPath path, java.util.Map<java.lang.String,java.lang.String> query, java.lang.String fragment)Construct my URI with query parameters and fragment. -
Uses of HiroException in co.arago.hiro.client.util.httpclient
Methods in co.arago.hiro.client.util.httpclient that throw HiroException Modifier and Type Method Description <T extends HiroMessage>
THttpResponseParser. createResponseObject(java.lang.Class<T> clazz)Convert the response into an object. -
Uses of HiroException in co.arago.hiro.client.websocket
Methods in co.arago.hiro.client.websocket that throw HiroException Modifier and Type Method Description voidEventWebSocket. addEventsFilter(EventsFilter filter)voidEventWebSocket. clearEventsFilter()protected voidAuthenticatedWebSocketHandler. createWebSocket()Create new WebSocket.voidActionWebSocket.InternalActionListener. onMessage(java.net.http.WebSocket webSocket, HiroMessage message)Handle incoming action messages.voidEventWebSocket. removeEventsFilter(java.lang.String filterId)protected voidAuthenticatedWebSocketHandler. restartWebSocket(boolean refreshToken)Restarts the websocket by closing the old and creating a new one.voidAuthenticatedWebSocketHandler. send(java.lang.String message)Send a message across the websocket.voidActionWebSocket. sendActionResult(java.lang.String id, ActionWebSocket.ResultParams resultParams)Send anActionHandlerResultusing the provided id and a ResultParams structure.voidActionWebSocket. sendActionResult(java.lang.String id, java.lang.String result)Send anActionHandlerResultusing the provided id and result string.voidAuthenticatedWebSocketHandler. start()voidEventWebSocket. subscribeScope(java.lang.String scopeId)
-