Use decorators.

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/redirectagent-final-uri-5435@37869 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb