Class Stream
java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
org.ocpsoft.rewrite.servlet.config.Stream
- All Implemented Interfaces:
Operation,OperationBuilder,Parameterized
An
Operation responsible for streaming a File on the host file-system to the
ServletResponse.getOutputStream().- Author:
- Lincoln Baxter, III
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.ocpsoft.logging.Loggerstatic final Stringprotected RegexParameterizedPatternBuilder -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamvoidsetParameterStore(ParameterStore store) static OperationMethods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
perform, performHttpMethods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and
-
Field Details
-
log
public static final org.ocpsoft.logging.Logger log -
STREAM_KEY
-
target
-
-
Method Details
-
from
Create anOperationthat streams the givenFileto theServletResponse.getOutputStream().The given
Filepath may be parameterized:new File("/tmp/file.txt")
new File("c:\tmp\{param}.txt")
...- Parameters:
location-ParameterizedPatternspecifying the location of theFile.
-
to
-
getRequiredParameterNames
- Specified by:
getRequiredParameterNamesin interfaceParameterized
-
setParameterStore
- Specified by:
setParameterStorein interfaceParameterized
-
getExpression
-