@Override public WonMessage process(WonMessage message) throws WonMessageProcessingException { //create the message to send to the remote node return WonMessageBuilder .setPropertiesForPassingMessageToRemoteNode( message, getMessageURI()) .build(); } }
@Override public WonMessage process(WonMessage message) throws WonMessageProcessingException { //create the message to send to the remote node return WonMessageBuilder .setPropertiesForPassingMessageToRemoteNode( message , getMessageURI()) .build(); } }
@Override public WonMessage process(WonMessage message) throws WonMessageProcessingException { return WonMessageBuilder .setPropertiesForPassingMessageToRemoteNode( message, getMessageURI()) .build(); } }
@Override public WonMessage process(WonMessage message) throws WonMessageProcessingException { return WonMessageBuilder .setPropertiesForPassingMessageToRemoteNode( message, getMessageURI()) .build(); } }
@Override public WonMessage process(WonMessage message) throws WonMessageProcessingException { return WonMessageBuilder .setPropertiesForPassingMessageToRemoteNode( message, getMessageURI()) .build(); } }
@Override public WonMessage process(WonMessage message) throws WonMessageProcessingException { return WonMessageBuilder .setPropertiesForPassingMessageToRemoteNode( message, getMessageURI()) .build(); } }
@Override public WonMessage process(WonMessage message) throws WonMessageProcessingException { return WonMessageBuilder .setPropertiesForPassingMessageToRemoteNode( message, getMessageURI()) .setSenderURI(connection.getConnectionURI()) .build(); } }
private WonMessage createMessageToSendToRemoteNode(WonMessage wonMessage, Connection con) { //create the message to send to the remote node return WonMessageBuilder .setPropertiesForPassingMessageToRemoteNode( wonMessage, wonNodeInformationService .generateEventURI(wonMessage.getReceiverNodeURI())) .setSenderURI(con.getConnectionURI()) .build(); }
@Override public WonMessage process(WonMessage message) throws WonMessageProcessingException { //there need not be a remote connection. Don't create a message if this is the case. if (connection.getRemoteConnectionURI() == null) return null; URI remoteNodeURI = wonNodeInformationService.getWonNodeUri(connection.getRemoteConnectionURI()); URI localNodeURI = wonNodeInformationService.getWonNodeUri(connection.getConnectionURI()); //create the message to send to the remote node return WonMessageBuilder .setPropertiesForPassingMessageToRemoteNode( message, getMessageURI()) .setSenderNodeURI(localNodeURI) .setSenderURI(connection.getConnectionURI()) .setSenderNeedURI(connection.getNeedURI()) .setReceiverNodeURI(remoteNodeURI) .setReceiverURI(connection.getRemoteConnectionURI()) .setReceiverNeedURI(connection.getRemoteNeedURI()) .build(); } }