It may be cheaper to simply replace it. Carpets, clothing, linens and curtains will require immediate attention after the laundry equipment is cleaned and disinfected. Rinse the entire dryer with a clean, damp cloth one that isn't dripping wet. Leave the dryer door open until all surfaces are completely dry. The cost of cleaning and renovating damaged mattresses is usually prohibitive.
Replacement is probably the best option.
Pillows, however, are another story. It depends on the damage. Heavily soaked pillows should be discarded. They will harbor mildew and odor. If the outer ticking is badly damaged, transfer the feathers to a muslin bag larger than the ticking.