org.alfresco.deployment
Interface DeploymentTransportInputFilter

All Known Implementing Classes:
CompressionTransformer, SampleEncryptionTransformer, TestDeploymentTransportTransformer

public interface DeploymentTransportInputFilter

This interface is used for payload transformation of messages received by 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, DeploymentTransportOutputFilter

Method Summary
 java.io.InputStream addFilter(java.io.InputStream in, java.lang.String path, java.lang.String encoding, java.lang.String mimeType)
          Add a filter to transform the payload of a deployment.
 

Method Detail

addFilter

java.io.InputStream addFilter(java.io.InputStream in,
                              java.lang.String path,
                              java.lang.String encoding,
                              java.lang.String mimeType)
Add a filter to transform the payload of a deployment. The inputStream is received on the File System Receiver If this transformation is not required then simply return in. Do not return null.

Parameters:
in - the input stream being filtered.
path - the path of the file
encoding - the encoding of the file
mimeType - the mimeType of the file
Returns:
the filtered input stream


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.