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(HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap headers, java.lang.Long httpRequestTimeout)Method to communicate asynchronously via String body.HttpResponseParserAbstractAPIHandler. executeBinary(java.net.URI uri, java.lang.String method, StreamContainer bodyContainer, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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, HttpHeaderMap 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 booleanAbstractRemoteAuthTokenAPIHandler. checkResponse(java.net.http.HttpResponse<java.io.InputStream> httpResponse, int retryCount)Check for the kind of error.booleanTokenAPIHandler. checkResponse(java.net.http.HttpResponse<java.io.InputStream> httpResponse, int retryCount)The default way to check responses for errors and extract error messages.DecodedTokenAbstractTokenAPIHandler. decodeToken()Decode the payload part of the internal token.DecodedTokenTokenAPIHandler. decodeToken()Decode the payload part of the internal token.static DecodedTokenTokenAPIHandler. decodeToken(java.lang.String token)Decode the payload part of any token.java.net.URITokenAPIHandler. getApiURIOf(java.lang.String apiName)Determine the API URI path for a named API.java.net.URICodeFlowAuthTokenAPIHandler. getAuthorizeURI()Generate a URI for a browser to use for the authorization call.java.lang.StringAbstractRemoteAuthTokenAPIHandler. getToken()Return the current token.java.lang.StringTokenAPIHandler. getToken()Return the current token.java.net.URIAbstractRemoteAuthTokenAPIHandler. getURI(java.lang.String path)Construct my URI.VersionResponseTokenAPIHandler. getVersionMap()Returns the current versionMap.voidAbstractRemoteAuthTokenAPIHandler. refreshToken()Refresh an invalid token.voidAbstractRemoteAuthTokenAPIHandler. refreshToken(java.lang.String organization, java.lang.String organizationId)Refresh an invalid token.voidCodeFlowAuthTokenAPIHandler. refreshToken()Refresh an invalid token.voidEnvironmentTokenAPIHandler. refreshToken()Refresh an invalid token.voidFixedTokenAPIHandler. refreshToken()Refresh an invalid token.voidTokenAPIHandler. refreshToken()Refresh an invalid token.protected abstract voidAbstractRemoteAuthTokenAPIHandler. requestToken(java.lang.String organization, java.lang.String organizationId)Obtain a new token from the auth API.protected voidCodeFlowAuthTokenAPIHandler. requestToken(java.lang.String organization, java.lang.String organizationId)Obtain a new token from the auth API.protected voidPasswordAuthTokenAPIHandler. requestToken(java.lang.String organization, java.lang.String organizationId)Obtain a new token from the auth API.voidAbstractRemoteAuthTokenAPIHandler. revokeToken()Revoke a token.voidAbstractRemoteAuthTokenAPIHandler. revokeToken(java.lang.String tokenHint)Revoke a token.voidEnvironmentTokenAPIHandler. revokeToken()Revoke a tokenvoidFixedTokenAPIHandler. revokeToken()Revoke a tokenvoidTokenAPIHandler. 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(HttpHeaderMap headers)Add Authorization.booleanAuthenticatedAPIHandler. checkResponse(java.net.http.HttpResponse<java.io.InputStream> httpResponse, int retryCount)Checks forTokenUnauthorizedExceptionandHiroHttpExceptionuntilAbstractAPIHandler.getMaxRetries()is 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, URIEncodedData 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)
-