什么是超媒体,超媒体控件,超媒体格式 [英] what is hypermedia , hypermedia controls, hypermedia formats

查看:190
本文介绍了什么是超媒体,超媒体控件,超媒体格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在阅读最佳实践一书。我无法理解以下术语超媒体,超媒体格式,超媒体控件,域应用程序协议。作者建议需要特定于域的超媒体格式。我很难理解。我用谷歌搜索了这些术语,但是找不到正确的答案。谁能解释这些术语以及为什么我们需要特定于域的超媒体格式而不是application / xml?

解决方案

Hypermedia =客户端服务器和服务器根据某种统一的表示进行交谈,例如:超链接。






HyperMedia Control =需要对资源进行操作。因此,例如,一个产品由超链接域/ product / 001
表示,然后可以通过超媒体控制域/ product / 001 / edit和domain / product / 001 / delete操作(编辑和删除)资源。






最大的区别在于方法。程序系统首先将操作作为状态转移以顺序代码(java等)形式编写,然后将交互作为超链接进行制造以传递HATEOAS。



但是作为交互方式处理的系统直接对交互进行建模,因此直接提供了超链接。 http://www.masterkube.com/hateoas_technology.html 是一个示例。 / p>

希望这会有所帮助。


I'm currently reading "Rest in practice" book . I'm unable to understand the following terminology Hypermedia , hypermedia format, hypermedia controls, Domain application protocol. The author was suggesting need for domain specific hypermedia format. I could hardly understand those. I googled these terms but couldnt find a right answer. Can anyone explain these terminologies and why we need domain specific hypermedia formats instead of application/xml ?

解决方案

Hypermedia = the fact that client and server are talking in terms of some a uniform representation eg: hyper links.


HyperMedia Control = A resource needs to be have operation done on it. So for example a product is represented by the hyperlink domain/product/001 then resource can be operated (edited and deleted) on by hypermedia control domain/product/001/edit and domain/product/001/delete.


The biggest difference is in the approach. procedural systems first write the operations as state transitions in sequential code (java, etc), then the interactions are manufactured as hyperlinks to deliver HATEOAS.

But systems approached as interactions directly model interactions and hence delivers hyperlinks directly. A sample example is http://www.masterkube.com/hateoas_technology.html is here.

Hope this helps.

这篇关于什么是超媒体,超媒体控件,超媒体格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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