org.bitrepository.service.contributor
Class ResponseDispatcher
java.lang.Object
org.bitrepository.service.contributor.MessageDispatcher
org.bitrepository.service.contributor.ResponseDispatcher
public class ResponseDispatcher
- extends MessageDispatcher
Provides the general functionality for sending reponses from a contributor.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponseDispatcher
public ResponseDispatcher(Settings settings,
MessageSender sender)
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.