org.apache.camel
Interface Headers

All Known Implementing Classes:
DefaultHeaders, HeadersSupport

public interface Headers

Represents the available headers on a message or message exchange.

Version:
$Revision: 520502 $

Method Summary
 Headers copy()
          Creates a copy of the headers so that we can append them to another exchange
 Object getHeader(String name)
          Accesses a specific header
 Map<String,Object> getHeaders()
          Returns all of the headers associated with the request
 void setHeader(String name, Object value)
          Sets a header on the exchange
 

Method Detail

getHeader

Object getHeader(String name)
Accesses a specific header

Parameters:
name -
Returns:
object header associated with the name

setHeader

void setHeader(String name,
               Object value)
Sets a header on the exchange

Parameters:
name - of the header
value - to associate with the name

getHeaders

Map<String,Object> getHeaders()
Returns all of the headers associated with the request

Returns:
all the headers in a Map

copy

Headers copy()
Creates a copy of the headers so that we can append them to another exchange



Copyright © 2007 Apache Software Foundation. All Rights Reserved.