Updated Branches: refs/heads/master cbb5bcf72 -> d16b5dced
Upgraded Scaladoc. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d16b5dce Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d16b5dce Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d16b5dce Branch: refs/heads/master Commit: d16b5dcede0a22259a1fdfea4cefcef4881f979f Parents: cbb5bcf Author: Henryk Konsek <hekon...@gmail.com> Authored: Thu Oct 24 13:37:25 2013 +0200 Committer: Henryk Konsek <hekon...@gmail.com> Committed: Thu Oct 24 13:37:25 2013 +0200 ---------------------------------------------------------------------- .../main/scala/org/apache/camel/scala/RichExchange.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/d16b5dce/components/camel-scala/src/main/scala/org/apache/camel/scala/RichExchange.scala ---------------------------------------------------------------------- diff --git a/components/camel-scala/src/main/scala/org/apache/camel/scala/RichExchange.scala b/components/camel-scala/src/main/scala/org/apache/camel/scala/RichExchange.scala index 1574fbf..74c19e9 100644 --- a/components/camel-scala/src/main/scala/org/apache/camel/scala/RichExchange.scala +++ b/components/camel-scala/src/main/scala/org/apache/camel/scala/RichExchange.scala @@ -29,6 +29,17 @@ class RichExchange(val exchange : Exchange) extends Exchange { def in_=(message: Any) { exchange.getIn.setBody(message) } + /** + * Retrieves given header from the input message. Primarily intended to be used together with the named parameter + * header, for example: + * + * {{{ + * val header = exchange.in(header = "headerKey") + * }}} + * + * @param header name of the header to retrieve + * @return header value + */ def in(header:String) : Any = exchange.getIn.getHeader(header) def in = exchange.getIn.getBody