def dobbou_runner(self): if self.method.lower() == 'http': res = self.http_runner() return res elif self.method.lower() == 'https': res = self.https_runner() return res elif self.method.lower() == 'hessian': res = self.hessian_runner() return res else: Log.LOG('DOBBOU').log_info( 'The protocol of Dobbou interface is invalid!')
def http_runner(self): Log.LOG('DOBBOU').log_info('The Dobbou method:\n') result = http.http_runner(self.interfacename) return result
def hessian_runner(self): Log.LOG('DOBBOU').log_info('The Dobbou method:\n') result = hessian.hessian_runner(self.interfacename, self.apiname) return result