commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balachandran Sivakumar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (EMAIL-154) add getHeader(..) method to Email
Date Fri, 24 Jul 2015 18:44:05 GMT

     [ https://issues.apache.org/jira/browse/EMAIL-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Balachandran Sivakumar updated EMAIL-154:
-----------------------------------------
    Attachment: getHeader.patch

A patch that attempts at adding the requested feature.

> add getHeader(..) method to Email
> ---------------------------------
>
>                 Key: EMAIL-154
>                 URL: https://issues.apache.org/jira/browse/EMAIL-154
>             Project: Commons Email
>          Issue Type: Improvement
>    Affects Versions: 1.4
>            Reporter: Ken Geis
>         Attachments: getHeader.patch
>
>
> In a service, I want to
> {code:java}
> email.setHeader("x-foo", "bar");
> {code}
> and then back in my JUnit test, I want to
> {code:java}
> assert("bar".equals(email.getHeader("x-foo")));
> {code}
> Unfortunately, there is no such easy way to inspect headers that have been set on an
email.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message