Package org.gcube.event.publisher
Interface EventSender
- All Known Implementing Classes:
AbstractHTTPWithJWTTokenAuthEventSender,HTTPWithOIDCAuthEventSender,HTTPWithUMAAuthEventSender
public interface EventSender
-
Method Summary
Modifier and TypeMethodDescriptionintReturn the last retrieve HTTP response code.intReturn the last send HTTP response code.org.json.simple.JSONObjectRetrieves the instance of the provided workflow instance.voidSends an event.sendAndGetResult(Event event) Send an event and get results.
-
Method Details
-
send
Sends an event.- Parameters:
event- the event to send
-
getLastSendHTTPResponseCode
int getLastSendHTTPResponseCode()Return the last send HTTP response code.- Returns:
- the HTTP response code or -1 if an error occurred before the call (e.g. during the authorization or connection)
-
sendAndGetResult
Send an event and get results.- Parameters:
event- the event to send- Returns:
- the result of the call
-
retrive
Retrieves the instance of the provided workflow instance.- Parameters:
id- the workflow instance id- Returns:
-
getLastRetrieveHTTPResponseCode
int getLastRetrieveHTTPResponseCode()Return the last retrieve HTTP response code.- Returns:
- the HTTP response code or -1 if an error occurred before the call (e.g. during the authorization or connection)
-