Package org.nuclos.api.communication
Interface CommunicationPort
public interface CommunicationPort
A custom communication port must implement this interface.
If the port receives a message or what ever, you should notify Nuclos via the
org.nuclos.api.provider.CommunicationProvider#handleNotification(NotificationContext)
NotificationContext objects are created from org.nuclos.api.provider.CommunicationProvider#newContextInstance(CommunicationPort, Class)
NotificationContext classes can be found in package org.nuclos.api.context.communication-
Method Summary
Modifier and TypeMethodDescriptiongetId()<C extends RequestContext<?>>
voidhandleRequest(C context) Nuclos calls this method only for the types your interface supports.
-
Method Details
-
getId
UID getId()- Returns:
- the id
-
handleRequest
Nuclos calls this method only for the types your interface supports. Add the supported types ofRequestContextduring the registration org.nuclos.api.communication.CommunicationInterface#register(org.nuclos.api.communication.CommunicationInterface.Registration) ReponsesRequestContext.clearResponse()creates a newRequestResponse. Send the complete context with response back to Nuclos via org.nuclos.api.provider.CommunicationProvider#handleNotification(NotificationContext) when the request is processed, in a new state...- Parameters:
context-- Throws:
BusinessException
-