01: // (c) copyright 2006 by eXXcellent solutions, Ulm. Author: bschmid
02:
03: package org.wings.resource;
04:
05: import java.util.Map;
06:
07: /**
08: * A HTTP header entry which will be delivered in the header of the low-level HTTP response.
09: *
10: * @author Benjamin Schmid <B.Schmid@exxcellent.de>
11: */
12: public interface HttpHeader extends Map.Entry<String, Object> {
13:
14: /**
15: * @return The HTTP head parameter name
16: */
17: String getKey();
18:
19: /**
20: * @return The HTTP paramter value. This may be a <code>String</code>, <code>Integer</code> or <code>Date</code>.
21: */
22: Object getValue();
23:
24: /**
25: * @param value The HTTP paramter value. This may be a <code>String</code>, <code>Integer</code> or <code>Date</code>.
26: * @return The previous value.
27: */
28: Object setValue(Object value);
29: }
|