target.DSChecksumType = DSChecksumType;
target.DSChecksum = DSChecksum;
}
private static final MultiValueMap beginEnvironmentMap(String messageProtocol) {
MultiValueMap environmentMap = new MultiValueMap();
try {
environmentMap.set(Constants.HTTP_REQUEST.MESSAGE_PROTOCOL.uri,
messageProtocol);
Date now = new Date();
environmentMap.set(Constants.ENVIRONMENT.CURRENT_DATE_TIME.uri,
DateUtility.convertDateToString(now));
environmentMap.set(Constants.ENVIRONMENT.CURRENT_DATE.uri, DateUtility
.convertDateToDateString(now));
environmentMap.set(Constants.ENVIRONMENT.CURRENT_TIME.uri, DateUtility
.convertDateToTimeString(now));
} catch (Exception e) {
logger.warn("Datastream could not set envAttributes for checksum context");
}
return environmentMap;