工作灯HTTP适配器VS Ajax请求 [英] Worklight HTTP Adapter vs Ajax request

查看:134
本文介绍了工作灯HTTP适配器VS Ajax请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是使用HTTP适配器工作灯IBM检索一个RESTful API,而不是一个Ajax请求数据的优势是什么?我觉得用Ajax是更快,为什么总会有使用这样的适配器?

What are the advantages of using an HTTP Adapter in Worklight IBM to retrieve data from a Restful API instead of an ajax request? I think that using ajax is faster so why would one use such an adapter?

推荐答案

看看的<一个href="http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fdevref%2Fc_overview_of_ibm_worklight_adap.html"相对=nofollow>文档和<一href="http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#server-side-development"相对=nofollow>入门模块。

适配器提供各种好处,具体如下:

Adapters provide various benefits, as follows:

  • 快速发展:适配器开发JavaScript和XSL。开发者使用灵活,功能强大的服务器端JavaScript产生简洁易读code与后端应用程序和处理数据的整合。开发人员还可以使用XSL来分层后端数据转换成JSON。
  • 只读和交易功能: IBM工作灯适配器支持只读和事务访问模式,后端系统
  • 安全: IBM工作灯适配器使用灵活的验证设施,创建与后端系统的连接。适配器提供了与谁进行连接的用户的身份控制。用户可以是系统的用户,或委托他人交易是由用户。
  • 透明度:从后端应用程序以统一的方式暴露检索,从而使应用程序开发人员可以统一访问数据,无论其来源,格式和协议的数据
  • Fast Development: Adapters are developed in JavaScript and XSL. Developers employ flexible and powerful server-side JavaScript to produce succinct and readable code for integrating with back-end applications and processing data. Developers can also use XSL to transform hierarchical back-end data to JSON.
  • Read-only and Transactional Capabilities: IBM Worklight adapters support read-only and transactional access modes to back-end systems.
  • Security: IBM Worklight adapters use flexible authentication facilities to create connections with back-end systems. Adapters offer control over the identity of the user with whom the connection is made. The user can be a system user, or a user on whose behalf the transaction is made.
  • Transparency: Data retrieved from back-end applications is exposed in a uniform manner, so that application developers can access data uniformly, regardless of its source, format, and protocol.

这篇关于工作灯HTTP适配器VS Ajax请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆