ignoreUSKDatehints = fs.getBoolean("IgnoreUSKDatehints", false);
}
@Override
public SimpleFieldSet getFieldSet() {
SimpleFieldSet sfs = new SimpleFieldSet(true);
sfs.putSingle("URI", uri.toString());
sfs.putSingle("Identifier", identifier);
sfs.put("Verbosity", verbosity);
sfs.put("MaxRetries", maxRetries);
sfs.putSingle("Metadata.ContentType", contentType);
sfs.putSingle("ClientToken", clientToken);
switch(uploadFromType) {
case DIRECT:
sfs.putSingle("UploadFrom", "direct");
sfs.put("DataLength", dataLength);
break;
case DISK:
sfs.putSingle("UploadFrom", "disk");
sfs.putSingle("Filename", origFilename.getAbsolutePath());
sfs.put("DataLength", dataLength);
break;
case REDIRECT:
sfs.putSingle("UploadFrom", "redirect");
sfs.putSingle("TargetURI", redirectTarget.toString());
break;
}
sfs.put("GetCHKOnly", getCHKOnly);
sfs.put("PriorityClass", priorityClass);
sfs.putSingle("Persistence", persistence.toString().toLowerCase());
sfs.put("DontCompress", dontCompress);
if (compressorDescriptor != null)
sfs.putSingle("Codecs", compressorDescriptor);
sfs.put("Global", global);
sfs.put("BinaryBlob", binaryBlob);
return sfs;
}