Class EventUtil
java.lang.Object
com.skava.marketplace.orchestration.utils.EventUtil
EventUtil - This class will act as an interceptor to send external event.
- Author:
- Equinox Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneventType - This method will be used to construct event type.com.skava.core.properties.EventPayload<Object>
getPayload
(org.apache.camel.Exchange exchange, Class<?> responseModel, String collectionId) getPayload - This method will get the payload from response.void
sendEventPayload
(com.skava.core.properties.EventPayload<?> payloadobject) sendEventPayload - This method will act as a intercepter to send external event.
-
Constructor Details
-
EventUtil
public EventUtil()
-
-
Method Details
-
sendEventPayload
public void sendEventPayload(com.skava.core.properties.EventPayload<?> payloadobject) sendEventPayload - This method will act as a intercepter to send external event.- Parameters:
payloadobject
-
-
getPayload
public com.skava.core.properties.EventPayload<Object> getPayload(org.apache.camel.Exchange exchange, Class<?> responseModel, String collectionId) throws IOException getPayload - This method will get the payload from response.- Parameters:
exchange
-responseModel
-- Returns:
- Throws:
IOException
-
eventType
eventType - This method will be used to construct event type.- Parameters:
routeId
-- Returns:
-