use of won.bot.framework.eventbot.event.RemoteNeedSpecificEvent in project webofneeds by researchstudio-sat.
the class ExecuteSendMessageCommandAction method makeLogMessageString.
private String makeLogMessageString(Event event) {
StringBuilder sb = new StringBuilder();
MessageCommandEvent messageCommandEvent = (MessageCommandEvent) event;
sb.append("sending message of type ").append(messageCommandEvent.getWonMessageType());
if (event instanceof NeedSpecificEvent) {
sb.append(" on behalf of need ").append(((NeedSpecificEvent) event).getNeedURI());
}
if (event instanceof RemoteNeedSpecificEvent) {
sb.append(" to need ").append(((RemoteNeedSpecificEvent) event).getRemoteNeedURI());
}
if (event instanceof ConnectionSpecificEvent) {
sb.append(" in connection ").append(((ConnectionSpecificEvent) event).getConnectionURI());
}
return sb.toString();
}
Aggregations