void headerField::setValue(const headerFieldValue& value)
{
	if (!headerFieldFactory::getInstance()->isValueTypeValid(*this, value))
		throw exceptions::bad_field_value_type(getName());

	m_value = value.clone().dynamicCast <headerFieldValue>();
}
void headerField::setValue(const headerFieldValue& value)
{
	m_value = value.clone().dynamicCast <headerFieldValue>();
}