Inflammatory response to an exogenous environmental antigen or an endogenous antigen initiated by the adaptive immune system.