org.bitrepository.service.contributor
Class ResponseDispatcher

java.lang.Object
  extended by org.bitrepository.service.contributor.MessageDispatcher
      extended by org.bitrepository.service.contributor.ResponseDispatcher

public class ResponseDispatcher
extends MessageDispatcher

Provides the general functionality for sending reponses from a contributor.


Field Summary
 
Fields inherited from class org.bitrepository.service.contributor.MessageDispatcher
settings
 
Constructor Summary
ResponseDispatcher(Settings settings, MessageSender sender)
           
 
Method Summary
 void dispatchResponse(MessageResponse response, MessageRequest request)
          Completes and sends a given response.
 
Methods inherited from class org.bitrepository.service.contributor.MessageDispatcher
dispatchMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseDispatcher

public ResponseDispatcher(Settings settings,
                          MessageSender sender)
Method Detail

dispatchResponse

public void dispatchResponse(MessageResponse response,
                             MessageRequest request)
Completes and sends a given response. All the values of the specific response elements has to be set, including the ResponseInfo.
Sets the fields:
CollectionID
CorrelationID
From
MinVersion
ReplyTo
To
Version

Parameters:
response - The response which only needs the basic information to be send.
request - The original request to respond to.


Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.