public abstract class Stream extends HttpOperation implements Parameterized
Operation responsible for streaming a File on the host file-system to the
ServletResponse.getOutputStream().| Modifier and Type | Field and Description |
|---|---|
static org.ocpsoft.logging.Logger |
log |
static String |
STREAM_KEY |
protected RegexParameterizedPatternBuilder |
target |
| Modifier and Type | Method and Description |
|---|---|
static Stream |
from(File file)
|
ParameterizedPatternBuilder |
getExpression() |
Set<String> |
getRequiredParameterNames() |
void |
setParameterStore(ParameterStore store) |
static Operation |
to(File file)
Create an
Operation that duplicates content written to ServletResponse.getOutputStream() and
writes it to the given File. |
perform, performHttpandpublic static final org.ocpsoft.logging.Logger log
public static final String STREAM_KEY
protected RegexParameterizedPatternBuilder target
public static Stream from(File file)
Operation that streams the given File to the
ServletResponse.getOutputStream().
The given File path may be parameterized:
new File("/tmp/file.txt")
new File("c:\tmp\{param}.txt")
...
location - ParameterizedPattern specifying the location of the File.ConfigurationRuleParameterBuilder#where(String)}public static Operation to(File file)
Operation that duplicates content written to ServletResponse.getOutputStream() and
writes it to the given File.public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface Parameterizedpublic ParameterizedPatternBuilder getExpression()
Copyright © 2016 OCPsoft. All rights reserved.