How is it treated?
Antibiotics are used to treat epididymitis. Supportive measures, such as bed rest with elevation of the hips and anti-inflammatory medicines (such as ibuprofen or ketoprofen), may help relieve discomfort caused by epididymitis.
If you have symptoms of epididymitis, reduce the risk of spreading a possible infection to your partner by avoiding sexual intercourse until you can be examined by your doctor. It is important for sex partners to be evaluated and treated for a possible infection.
Source: http://www.webmd.com