org.mule.api.annotations.param
Annotation Type OutboundHeaders


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface OutboundHeaders

Used on Components that have an outbound endpoint configured or a response being sent back, and enables users to set outbound/response headers via Map without needing to use the Mule API (other than using the annotation) on the method argument). This parameter annotation passes in a reference to a Map that can be used to populate outbound headers that will be set with the outgoing message. For example, when sending an email message, you may want to set properties such as "from" or "subject" as a sender header.

This annotation must only be defined on a parameter of type Map.



Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.