org.bitrepository.service.contributor
Class MessageDispatcher
java.lang.Object
org.bitrepository.service.contributor.MessageDispatcher
- Direct Known Subclasses:
- AlarmDispatcher, ResponseDispatcher
public class MessageDispatcher
- extends Object
Provides the general functionality for sending reponses from a pillar.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
settings
protected final Settings settings
MessageDispatcher
public MessageDispatcher(Settings settings,
MessageSender sender)
dispatchMessage
protected void dispatchMessage(Message message)
- Completes and sends a given message.
All the values of the specific response elements has to be set, including the ResponseInfo.
Sets the fields:
CollectionID
From
MinVersion
Version
- Parameters:
message
- The message which only needs the basic information to be send.
Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.