org.bitrepository.service.contributor
Class MessageDispatcher

java.lang.Object
  extended by 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.


Field Summary
protected  Settings settings
           
 
Constructor Summary
MessageDispatcher(Settings settings, MessageSender sender)
           
 
Method Summary
protected  void dispatchMessage(Message message)
          Completes and sends a given message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settings

protected final Settings settings
Constructor Detail

MessageDispatcher

public MessageDispatcher(Settings settings,
                         MessageSender sender)
Method Detail

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.