Issue Details (XML | Word | Printable)

Key: JAMES-513
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Norman Maurer
Reporter: Norman Maurer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JAMES Server

Rename AddHeader and AddHeaderHandler

Created: 30/May/06 03:46 PM   Updated: 21/Nov/07 08:31 AM
Return to search
Component/s: None
Affects Version/s: 2.3.0
Fix Version/s: 2.3.0

Time Tracking:
Not Specified

Resolution Date: 31/May/06 04:18 PM


 Description  « Hide
We should rename AddHeader and AddHeaderHandler to represent the function.
 

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Norman Maurer added a comment - 30/May/06 03:47 PM
when working on junit test for AddHeaderHandler i notice that the
AddHeaderHandler use setHeader(String name, String value); . So it not
add a header, it set a header. This is not what i espected when i read
the Handlername.

So for me are 2 solutions:

1. Rename the AddHeaderHandler to SetHeaderHandler
2. use addHeader(String name, String value) instand of setHeader(String
name, String value)

i prefer the first. What the you think ?

Norman Maurer added a comment - 30/May/06 03:49 PM
Maybe we should rename the AddHeader to SetHeader and add new Method
which extend on this named AddHeader. This method should be marked as
deprected. Then we can later remove it.

Same to the handler.

What you guys think ?

Norman Maurer added a comment - 30/May/06 03:49 PM

To clarify my position:

+1 to deprecate the AddHeader and add a new Set*Header
   +0.6 to name it SetMimeHeader
   +0.4 to name it SetRfc822Header (most correct, but less intelligible
to non techies)
   +0.2 to name it SetHeader

Furthermore

+1 to do that in the 2.3 branch and remove AddHeader from the trunk

Stefano

Norman Maurer added a comment - 31/May/06 04:18 PM
Should we merge it in the branch so we can remove the old classes in 2.4/3.0 ?

Danny Angus added a comment - 21/Nov/07 08:31 AM
Closing issue fixed in released version.