public class DefaultNotifyHandler extends com.centurylink.mdw.listener.ExternalEventHandlerBase implements NotifyHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DELAY |
| Constructor and Description |
|---|
DefaultNotifyHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDelay() |
java.lang.String |
getEventId(org.apache.camel.Message request)
Return the eventId correlating with the process instance(s) to notify.
|
java.lang.String |
getRequestDocumentType(org.apache.camel.Message request)
Return the request document object type.
|
java.lang.String |
getResponse(int code,
java.lang.String message)
Build the response based on the the message content.
|
java.lang.String |
handleEventMessage(java.lang.String message,
java.lang.Object messageObj,
java.util.Map<java.lang.String,java.lang.String> metaInfo)
This is for non-Camel style event handlers.
|
java.lang.Object |
initializeRequestDocument(org.apache.camel.Message request)
Parse the request message body and return its object representation.
|
java.lang.Object |
notify(java.lang.String eventId,
java.lang.Long docId,
org.apache.camel.Message request,
int delay)
Performs the notification.
|
createDocument, createResponseMessage, getJaxbTranslator, getPackage, getProcessDefinition, getProcessId, getResource, invokeServiceProcess, invokeServiceProcess, invokeServiceProcess, invokeServiceProcess, launchProcess, launchProcess, marshalJaxb, notifyProcesses, placeHolderTranslation, setPackage, translateParameters, unmarshalJaxb, updateDocumentContentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPackage, setPackagepublic static final int DEFAULT_DELAY
public java.lang.String getRequestDocumentType(org.apache.camel.Message request)
throws MdwCamelException
EventHandlerMdwCamelExceptionpublic java.lang.Object initializeRequestDocument(org.apache.camel.Message request)
throws MdwCamelException
EventHandlerrequest - - the request messageMdwCamelExceptionpublic java.lang.String getEventId(org.apache.camel.Message request)
NotifyHandlergetEventId in interface NotifyHandlerrequest - the request messagepublic java.lang.Object notify(java.lang.String eventId,
java.lang.Long docId,
org.apache.camel.Message request,
int delay)
NotifyHandlernotify in interface NotifyHandlereventId - correlates with the process instance(s) to notifydocId - the request document idrequest - the message whose body contents are to be sent to the notify receiver(s)delay - in secondspublic java.lang.String getResponse(int code,
java.lang.String message)
EventHandlercode - status codemessage - status messagepublic int getDelay()
getDelay in interface NotifyHandlerpublic java.lang.String handleEventMessage(java.lang.String message,
java.lang.Object messageObj,
java.util.Map<java.lang.String,java.lang.String> metaInfo)
throws com.centurylink.mdw.event.EventHandlerException
handleEventMessage in interface com.centurylink.mdw.event.ExternalEventHandlercom.centurylink.mdw.event.EventHandlerException