An Integral Equation Approach to the Theory of Optical Resonance