public class HarvesterRegistrationResponse extends HarvesterMessage
HarvesterRegistrationRequest
message.
It notifies crawlers whether a given harvest channel effectively matches a HarvestChannel
defined in the
harvest database.replyOfId
Constructor and Description |
---|
HarvesterRegistrationResponse(String harvestChannelName,
boolean isValid,
boolean isSnapshot)
Constructor from fields.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(HarvesterMessageVisitor v)
Should be implemented as a part of the visitor pattern.
|
String |
getHarvestChannelName() |
boolean |
isSnapshot() |
boolean |
isValid() |
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk, toString
public HarvesterRegistrationResponse(String harvestChannelName, boolean isValid, boolean isSnapshot)
harvestChannelName
- the harvest channel nameisValid
- whether the given name denotes an existing channelisSnapshot
- true if the channel accepts snapshot harvest, false for partial.public void accept(HarvesterMessageVisitor v)
HarvesterMessage
accept
in class HarvesterMessage
v
- A message visitorpublic final String getHarvestChannelName()
public final boolean isValid()
public final boolean isSnapshot()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.