org.mule.module.pgp
Class TransformPerRequestPolicy

java.lang.Object
  extended by org.mule.module.pgp.AbstractTransformPolicy
      extended by org.mule.module.pgp.TransformPerRequestPolicy
All Implemented Interfaces:
TransformPolicy

public class TransformPerRequestPolicy
extends AbstractTransformPolicy

A TransformPolicy that copies only the requested transformed bytes into the PipedOutputStream.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.module.pgp.AbstractTransformPolicy
AbstractTransformPolicy.TransformerWork
 
Field Summary
 
Fields inherited from class org.mule.module.pgp.AbstractTransformPolicy
isClosed, logger
 
Constructor Summary
TransformPerRequestPolicy()
           
 
Method Summary
protected  Thread getCopyingThread()
          
 void readRequest(long length)
          Notifies this policy that the object has requested nroOfBytes
 void release()
          Releases all the resources of this policy
 
Methods inherited from class org.mule.module.pgp.AbstractTransformPolicy
getBytesRequested, getInputStream, getTransformer, initialize, startCopyingThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformPerRequestPolicy

public TransformPerRequestPolicy()
Method Detail

readRequest

public void readRequest(long length)
Notifies this policy that the object has requested nroOfBytes

Specified by:
readRequest in interface TransformPolicy
Overrides:
readRequest in class AbstractTransformPolicy
Parameters:
length - the nro of bytes requested by the object

release

public void release()
Releases all the resources of this policy

Specified by:
release in interface TransformPolicy
Overrides:
release in class AbstractTransformPolicy

getCopyingThread

protected Thread getCopyingThread()

Specified by:
getCopyingThread in class AbstractTransformPolicy
Returns:
an instance of the copying Thread


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.