KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > exchange > PacketHeader


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.exchange;
14
15 import java.util.Set JavaDoc;
16
17
18 /**
19  * Date: May 4, 2004 Time: 11:14:00 AM
20  * @author Sameer Charles
21  */

22 public interface PacketHeader {
23
24     /**
25      * <p>
26      * add new header field, overwrite is header exist with the same name
27      * </p>
28      * @param name
29      * @param value
30      */

31     void addHeader(String JavaDoc name, String JavaDoc value);
32
33     /**
34      * @return header field value
35      */

36     String JavaDoc getValueByName(String JavaDoc name);
37
38     /**
39      * @return Collection of fieldNames as String
40      */

41     Set JavaDoc getKeys();
42 }
43
Popular Tags