public abstract class AbstractExportViewToFile extends Object implements org.apache.commons.chain.Command
| Modifier and Type | Field and Description |
|---|---|
protected String |
desFsPathKey
target file key
|
protected String |
noRecurseKey
no recurse flag key
|
protected String |
overwriteKey
overwrite flag key
|
protected String |
skipBinaryKey
skip binary flag key
|
protected String |
srcAbsPathKey
from literal
|
| Constructor and Description |
|---|
AbstractExportViewToFile() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(org.apache.commons.chain.Context ctx) |
protected abstract void |
exportView(Node node,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
Export the view to the given OutputStream
|
String |
getDesFsPathKey() |
String |
getNoRecurseKey() |
protected OutputStream |
getOutputStream(org.apache.commons.chain.Context ctx) |
String |
getOverwriteKey() |
String |
getSkipBinaryKey() |
String |
getSrcAbsPathKey() |
void |
setDesFsPathKey(String toKey) |
void |
setNoRecurseKey(String noRecurseKey) |
void |
setOverwriteKey(String overwriteKey) |
void |
setSkipBinaryKey(String skipBinaryKey) |
void |
setSrcAbsPathKey(String fromKey) |
protected String srcAbsPathKey
protected String desFsPathKey
protected String overwriteKey
protected String skipBinaryKey
protected String noRecurseKey
protected OutputStream getOutputStream(org.apache.commons.chain.Context ctx) throws CommandException, IOException
CommandExceptionIOExceptionpublic String getNoRecurseKey()
public void setNoRecurseKey(String noRecurseKey)
noRecurseKey - the no recurse key to setpublic String getOverwriteKey()
public void setOverwriteKey(String overwriteKey)
overwriteKey - the overwrite key to setpublic String getSkipBinaryKey()
public void setSkipBinaryKey(String skipBinaryKey)
skipBinaryKey - the skip binary key to setpublic String getSrcAbsPathKey()
public void setSrcAbsPathKey(String fromKey)
fromKey - the from key to setpublic String getDesFsPathKey()
public void setDesFsPathKey(String toKey)
toKey - the to key to setpublic final boolean execute(org.apache.commons.chain.Context ctx)
throws Exception
execute in interface org.apache.commons.chain.CommandExceptionprotected abstract void exportView(Node node, OutputStream out, boolean skipBinary, boolean noRecurse) throws PathNotFoundException, IOException, RepositoryException
node - the Nodeout - the OutputStreamskipBinary - noRecurse - RepositoryExceptionIOExceptionPathNotFoundExceptionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.