public class IdentifyPillarsForGetChecksumsRequestHandler extends ChecksumPillarMessageHandler<IdentifyPillarsForGetChecksumsRequest>
context, RESPONSE_FOR_POSITIVE_IDENTIFICATION
MIN_VERSION, VERSION, XSD_BR_DATA, XSD_CLASSPATH
Constructor and Description |
---|
IdentifyPillarsForGetChecksumsRequestHandler(MessageHandlerContext context,
ChecksumStore refCache)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkThatAllRequestedFilesAreAvailable(IdentifyPillarsForGetChecksumsRequest message)
Validates that all the requested files in the filelist are present.
|
MessageResponse |
generateFailedResponse(IdentifyPillarsForGetChecksumsRequest message)
Used for creating responses signaling general failures to handle the request.
|
Class<IdentifyPillarsForGetChecksumsRequest> |
getRequestClass()
Return the request class which is handled by this handler.
|
void |
processRequest(IdentifyPillarsForGetChecksumsRequest message)
Implements the concrete handling of a received request.
|
getCache, getChecksumPillarFileDownload, getChecksumType, validateChecksumSpec
getAuditManager, getSettings, validateFileID, validatePillarId
dispatchResponse, getContext, validateCollectionID
public IdentifyPillarsForGetChecksumsRequestHandler(MessageHandlerContext context, ChecksumStore refCache)
context
- The context of the message handler.refCache
- The cache for the checksum data.public Class<IdentifyPillarsForGetChecksumsRequest> getRequestClass()
RequestHandler
public void processRequest(IdentifyPillarsForGetChecksumsRequest message) throws RequestHandlerException
RequestHandler
message
- The request to handle.RequestHandlerException
- If something goes wrong while handling thepublic MessageResponse generateFailedResponse(IdentifyPillarsForGetChecksumsRequest message)
RequestHandler
public void checkThatAllRequestedFilesAreAvailable(IdentifyPillarsForGetChecksumsRequest message) throws RequestHandlerException
IdentifyContributorException
with the appropriate errorcode is thrown.message
- The message containing the list files. An empty filelist is expected
when "AllFiles" or the parameter option is used.RequestHandlerException
Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.