def handle_request(self, env, req):
        """
        This handles requests from a user to activate cdn access for their
        containers, list them, etc.
        """
        if 'swift.authorize' in req.environ:
            aresp = req.environ['swift.authorize'](req)
            if aresp:
                return aresp
        try:
            if req.method in ('PUT', 'POST'):
                return self.origin_db_puts_posts(env, req)
            if req.method == 'GET':
                return self.origin_db_get(env, req)
            if req.method == 'HEAD':
                return self.origin_db_head(env, req)
            if req.method == 'DELETE':
                return self.origin_db_delete(env, req)
        except OriginDbFailure, e:
            self.logger.exception(e)
            return HTTPInternalServerError('Origin DB Failure')
        return HTTPNotFound()
dataset/ETHPy150Open dpgoetz/sos/sos/origin.py/OriginDbHandler.handle_request/original