org.alfresco.deployment
Interface DeploymentTransportOutputFilter
- All Known Implementing Classes:
- CompressionTransformer, SampleEncryptionTransformer, TestDeploymentTransportTransformer
public interface DeploymentTransportOutputFilter
This interface is used for payload transformation of messages to a file
system receiver.
The transformers are called just before or just after content is sent over the network
to an FSR, but in all cases before the deployment is committed.
Implementors will typically create a java.io.FilterOutputStream to wrap the given stream.
- See Also:
FilterInputStream
,
org.alfresco.deployment.transformers.ZipCompressionTransformer
,
DeploymentTransportInputFilter
Method Summary |
java.io.OutputStream |
addFilter(java.io.OutputStream out,
java.lang.String path,
java.lang.String encoding,
java.lang.String mimeType)
Add a filter to transform the payload of a deployment. |
addFilter
java.io.OutputStream addFilter(java.io.OutputStream out,
java.lang.String path,
java.lang.String encoding,
java.lang.String mimeType)
- Add a filter to transform the payload of a deployment.
The outputStream is the outgoing payload from WCM to the FSR.
If this transformation is not required then simply return out. Do not return null.
- Parameters:
out
- the output stream being filtered.encoding
- the encoding of the filemimeType
- the mimeType of the filepath
- the path of the file
- Returns:
- the filtered output stream
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.