记录所有媒体类型。
CSS media types: Get more information from the W3C.
CSSmedia types:从w3c获得更多信息。
Specify acceptable media types using the accept header.
使用accept头指定可接受的媒体类型。
Table 2 lists some of the media types you might encounter.
表2列出了可能遇到的一些媒体类型。
Multimedia, by definition, means a variety of media types.
多媒体,依照其定义,表示各种各样的媒体类型。
Check that the media types of representations are predefined.
检查表示的媒体类型是否是预定义的。
They can use other media types that do not have schema languages.
它们可以使用其他没有模式语言的媒体类型。
Opinion 1: Web services must use standard media types to be RESTful.
观点1:web服务必须要使用标准媒体类型才符合RESTful。
The last test case (Listing 4) creates a list of invalid media types.
最后一个测试用例(清单4)创建一个无效的媒体类型列表。
The first two methods test the two desired media types, Atom and JSON.
前两种方法是测试两种所需的媒体类型Atom和JSON。
Some Firefox extensions allow Firefox to recognize additional media types.
一些Firefox扩展使Firefox能够识别其他媒体类型。
Check that the representations match the predefined descriptions of media types.
检查表示是否匹配媒体类型的预定义描述。
Instead of descriptions of input and output messages for every operation, we see media types.
我们在其中并未看到关于每个操作输入和输出消息的描述,而看到了媒体类型。
The Accept request header is used to specify which media types are appropriate for the response.
接受请求头用于指定什么媒体类型对响应是合适的。
Opinion 2: Custom media types are necessary to keep interactions visible, and to serve as contracts.
观点2:定制媒体类型如同契约,对于维护交互可视性是至关重要的。
Flexibility of media types: Unlike SOAP based applications, RESTful applications are not limited to using XML.
媒体类型的灵活性:与基于SOAP的应用不同,RESTful应用不限于使用XML。
For example, an HTTP GET request might contain a list of media types supported by the client in the Accept header.
例如,HTTPGET请求可以在Accept标头中包含一个受该客户端支持的媒体类型列表。
Similarly, the JSON test case (Listing 3) lists a set of media types that should return JSON; namely, application/json.
类似地,JSON测试用例(清单3)列出一组应返回 JSON(即application/json)的媒体类型。
If the media types are described using an XML schema, grab that schema and generate classes that can parse or generate XML.
如果媒体类型是用XML模式描述的,那么就获取这个模式,生成能够解析或者生成xml的类。
The ability to specify new media types using URI mechanism may allow receiving applications to load handlers for new media types.
使用URI机制指定新媒体类型的能力可以允许接收应用程序为新媒体类型加载处理程序。
Produces: This annotation specifies the MIME media types that the methods in the resource can produce and return to the client.
Produces:该注解用于标识MIME媒体类型,这样资源中的方法就会生成该类型的内容并返回给客户端。
Accept: the accept request-header field can be used to specify certain media types responses that are acceptable to the client.
Accept:Accept请求标头字段可用来指定客户端可以接受的特定媒体类型响应。
By looking at such media types, the client knows whether it received a representation of an account resource or a transfer resource.
通过查看这样的媒体类型,客户端就知道收到的表示是一个账户资源,还是一个转账资源。
Companies need access to a wide range of information such as XML, message queues, documents, streaming video, and other rich media types.
企业需要访问广泛的信息,比如XML、消息队列、文档、流视频和其他富媒体类型。
To the contrary, the second opinion, he says, leads to visibility of the messages at the protocol level via the use of custom media types.
另一方面,他说,观点2通过使用定制媒体类型带来协议一级的消息可视性。
A few of us media types watched this part of the game in the Dallas locker room with a couple of the Mavs, and they were just as puzzled as I was.
我们几个媒体记者和几名小牛队的球员在他们的更衣室里看了这段比赛,他们像我一样疑惑不解。
Check that all links contained in representations have predefined relations and media types, and that the URIs included follow predefined URI patterns.
检查表示中包含的所有链接是否有预定义关系和媒体类型,并检查所包含uri是否符合预定义的URI模式。
The number of media types grows as machines become more dominant in a distributed computing environment and as the number of distinct environments increases.
随着计算机在分布式计算环境中的地位越来越重要,加上独特计算环境的数目的增长,多媒体类型的数量也随之增长。
Through the use of media types, we can give the user agent the ability to choose the best understood format — whether it be Atom or RSS feeds or any other media format.
通过使用媒体类型,我们可以赋予用户代理选择最佳理解格式的能力——不管它是Atom还是rss提要,抑或是任何其它媒体格式。
To sum up, for a RESTful application, the contract contains three different pieces: the uniform interface, media types of representations, and contextual links to resources.
总而言之,对于RESTful应用来说,契约包含三个不同部分:统一接口、表示的媒体类型和资源的上下文相关链接。
应用推荐