281.4. 消息标头

Name类型描述

Content-Type

字符串

指定内容类型,可在应用程序/处理器的 OUT 消息上设置。值是响应消息的 内容类型。如果没有设置此标头,则内容类型基于 OUT 消息正文的对象类型。在 Camel 2.3 onward 中,如果在 Camel IN 消息中指定 Content-Type 标头,标头的值决定了 Restlet 请求消息的内容类型。   否则,它默认为 "application/x-www-form-urlencoded'。在版本 2.3 之前,无法更改请求内容类型 default。

CamelAcceptContentType

字符串

Camel 2.9.3, 2.10.0 开始: HTTP Accept 请求标头。

CamelHttpMethod

字符串

HTTP 请求方法。这在 IN 消息标头中设置。

CamelHttpQuery

字符串

请求 URI 的查询字符串。当 restlet 组件收到请求时,它由 DefaultRestletBinding 在 IN 消息上设置。

CamelHttpResponseCode

字符串Integer

响应代码可由应用程序/处理器在 OUT 消息上设置。值是响应消息的响应代码。如果没有设置此标头,则响应代码由 restlet 运行时引擎设置。

CamelHttpUri

字符串

HTTP 请求 URI。这在 IN 消息标头中设置。

CamelRestletLogin

字符串

基本身份验证的登录名。它由应用程序在 IN 消息上设置,并在 Camel 的 restlet 请求标头之前过滤。

CamelRestletPassword

字符串

用于基本身份验证的密码名称。它由应用程序在 IN 消息上设置,并在 Camel 的 restlet 请求标头之前过滤。

CamelRestletRequest

Request(请求)

Camel 2.8: 保存所有请求详细信息的 org.restlet.Request 对象。

CamelRestletResponse

响应

Camel 2.8: org.restlet.Response 对象。您可以使用它来从 Restlet 使用 API 创建响应。请参见以下示例。

org.restlet.*

 

传播到 Camel IN 标头的 Restlet 消息的属性。

cache-control

字符串List<CacheDirective>

Camel 2.11: 用户可以通过 camel 消息标头中的 String 值或 CacheDirective of Restlet 列表设置 cache-control。