servletResponse.addHeader(LINK, builder.build().toString());
}
}
protected void addResourceHttpHeaders(final FedoraResource resource) {
if (resource instanceof FedoraBinary) {
<BUG>final FedoraBinary binary = (FedoraBinary)resource;
final ContentDisposition contentDisposition = ContentDisposition.type("attachment")</BUG>
.fileName(binary.getFilename())
<BUG>.creationDate(binary.getCreatedDate())

.modificationDate(binary.getLastModifiedDate())
.size(binary.getContentSize())</BUG>
.build();

servletResponse.addHeader(LINK, builder.build().toString());
}
}
protected void addResourceHttpHeaders(final FedoraResource resource) {
if (resource instanceof FedoraBinary) {
final FedoraBinary binary = (FedoraBinary)resource;
final Date createdDate = binary.getCreatedDate() != null ? Date.from(binary.getCreatedDate()) : null;
final Date modDate = binary.getLastModifiedDate() != null ? Date.from(binary.getLastModifiedDate()) : null;
final ContentDisposition contentDisposition = ContentDisposition.type("attachment")
.fileName(binary.getFilename())
.creationDate(createdDate)
.modificationDate(modDate)
.size(binary.getContentSize())
.build();
