/* * Copyright (c) 2010 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #include #include namespace Swift { CompressRequestSerializer::CompressRequestSerializer() { } SafeByteArray CompressRequestSerializer::serialize(boost::shared_ptr element) const { boost::shared_ptr compressRequest(boost::dynamic_pointer_cast(element)); return createSafeByteArray("" + compressRequest->getMethod() + ""); } bool CompressRequestSerializer::canSerialize(boost::shared_ptr element) const { return boost::dynamic_pointer_cast(element) != 0; } }