Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derivative connector: accept an inputargs property and pass it throug… #91

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public void configure() {
.setHeader(Exchange.HTTP_METHOD, constant("GET"))
.setHeader("Accept", simple("${exchangeProperty.event.attachment.content.mimetype}"))
.setHeader("X-Islandora-Args", simple("${exchangeProperty.event.attachment.content.args}"))
.setHeader("X-Islandora-Input-Args", simple("${exchangeProperty.event.attachment.content.inputargs}"))
.setHeader("Apix-Ldp-Resource", simple("${exchangeProperty.event.attachment.content.sourceUri}"))
.setBody(simple("${null}"))
.to(outputStream)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public class AS2AttachmentContent {
* Arguments to pass to derivative connector, ie. "-thumbnail 100x100".
*/
private String args;
/**
* Arguments to pass to derivative connector, ie. "-density 144".
*/
private String inputargs;
/**
* Path to attachment file, ie. public://2019-11/2-Thumbnail Image.jpg.
*/
Expand Down Expand Up @@ -144,6 +148,21 @@ public void setArgs(final String args) {
this.args = args;
}

/**
* @return inputargs
*/
@JsonProperty("inputargs")
public String getInputargs() {
return inputargs;
}

/**
* @param inputargs inputargs
*/
public void setInputargs(final String inputargs) {
this.inputargs = inputargs;
}

/**
* @return File upload uri
*/
Expand Down