22#include <com/sun/star/container/NoSuchElementException.hpp>
24#include <rtl/ustring.hxx>
61 auto const lower =
aName.toAsciiLowerCase();
64 throw css::container::NoSuchElementException( );
73 != aCntType.getStr() + aCntType.getLength())
75 throw css::lang::IllegalArgumentException(
76 "illegal media type " + aCntType, css::uno::Reference<css::uno::XInterface>(), -1);
78 for (
auto const &
i: params) {
79 if (!
i.second.m_bConverted) {
80 throw css::lang::IllegalArgumentException(
81 "illegal parameter value in media type " + aCntType,
82 css::uno::Reference<css::uno::XInterface>(), -1);
std::map< OUString, OUString > m_ParameterMap
virtual sal_Bool SAL_CALL hasParameter(const OUString &aName) override
virtual OUString SAL_CALL getFullMediaType() override
void init(const OUString &aCntType)
virtual OUString SAL_CALL getMediaSubtype() override
virtual OUString SAL_CALL getParameterValue(const OUString &aName) override
virtual css::uno::Sequence< OUString > SAL_CALL getParameters() override
virtual OUString SAL_CALL getMediaType() override
CMimeContentType(const OUString &rCntType)
static sal_Unicode const * scanContentType(std::u16string_view rStr, OUString *pType=nullptr, OUString *pSubType=nullptr, INetContentTypeParameterList *pParameters=nullptr)
std::unordered_map< OString, INetContentTypeParameter > INetContentTypeParameterList
css::uno::Sequence< typename M::key_type > mapKeysToSequence(M const &map)