public class DocumentURLAction extends Object implements MessageAction
It expects the document to be in the context under the key "document" and the baseUrl at baseUrl. It puts the URL at key "url".
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseUrl |
protected DocumentViewCodecManager |
documentViewCodecManager |
| Constructor and Description |
|---|
DocumentURLAction(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(ExecutionContext context)
Executes one action.
|
void |
reset(ExecutionContext context) |
protected DocumentViewCodecManager documentViewCodecManager
public DocumentURLAction(String baseUrl)
public boolean execute(ExecutionContext context)
MessageActionIf it returns false, the following actions from the pipe are not executed.
execute in interface MessageActionExecutionContextpublic void reset(ExecutionContext context)
reset in interface MessageActionCopyright © 2018 Nuxeo. All rights reserved.