Package org.gcube.event.publisher
Interface EventSender
-
- All Known Implementing Classes:
AbstractHTTPWithJWTTokenAuthEventSender,HTTPWithOIDCAuthEventSender,HTTPWithUMAAuthEventSender
public interface EventSender
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetLastRetrieveHTTPResponseCode()Return the last retrieve HTTP response code.intgetLastSendHTTPResponseCode()Return the last send HTTP response code.org.json.simple.JSONObjectretrive(String id)Retrieves the instance of the provided workflow instance.voidsend(Event event)Sends an event.StringsendAndGetResult(Event event)Send an event and get results.
-
-
-
Method Detail
-
send
void send(Event event)
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
String sendAndGetResult(Event event)
Send an event and get results.- Parameters:
event- the event to send- Returns:
- the result of the call
-
retrive
org.json.simple.JSONObject retrive(String id)
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)
-
-