A TransformationPlugin to easily add gzip inflate to your TransformationPlugin chain. More...
#include <GzipInflateTransformation.h>
Inherits atscppapi::TransformationPlugin.
Public Member Functions | |
GzipInflateTransformation (Transaction &transaction, TransformationPlugin::Type type) | |
A full example of how to use GzipInflateTransformation and GzipDeflateTransformation is available in examples/gzip_tranformation/. | |
void | consume (const std::string &) |
Any TransformationPlugin must implement consume(), this method will take content from the transformation chain and gzip decompress it. | |
void | handleInputComplete () |
Any TransformationPlugin must implement handleInputComplete(), this method will finalize the gzip decompression. | |
virtual | ~GzipInflateTransformation () |
A TransformationPlugin to easily add gzip inflate to your TransformationPlugin chain.
The GzipInflateTransformation is a helper transformation that can be used to easily decompress gzipped content. For a full example of GzipInflateTransformation and GzipDeflateTransformation see examples/gzip_transformation/.
Definition at line 55 of file GzipInflateTransformation.h.
atscppapi::transformations::GzipInflateTransformation::GzipInflateTransformation | ( | Transaction & | transaction, | |
TransformationPlugin::Type | type | |||
) |
A full example of how to use GzipInflateTransformation and GzipDeflateTransformation is available in examples/gzip_tranformation/.
transaction | As with any TransformationPlugin you must pass in the transaction | |
type | because the GzipInflateTransformation can be used with both requests and responses you must specify the Type. |
virtual atscppapi::transformations::GzipInflateTransformation::~GzipInflateTransformation | ( | ) | [virtual] |
void atscppapi::transformations::GzipInflateTransformation::consume | ( | const std::string & | ) | [virtual] |
Any TransformationPlugin must implement consume(), this method will take content from the transformation chain and gzip decompress it.
data | the input data to decompress |
Implements atscppapi::TransformationPlugin.
void atscppapi::transformations::GzipInflateTransformation::handleInputComplete | ( | ) | [virtual] |
Any TransformationPlugin must implement handleInputComplete(), this method will finalize the gzip decompression.
Implements atscppapi::TransformationPlugin.