View Javadoc
1   /*
2    * Copyright 2012 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  package io.netty.handler.codec.http;
17  
18  import io.netty.handler.codec.TextHeaders;
19  
20  
21  /**
22   * Provides the constants for the standard HTTP header names and values and
23   * commonly used utility methods that accesses an {@link HttpMessage}.
24   */
25  public interface HttpHeaders extends TextHeaders {
26      @Override
27      HttpHeaders add(CharSequence name, CharSequence value);
28  
29      @Override
30      HttpHeaders add(CharSequence name, Iterable<? extends CharSequence> values);
31  
32      @Override
33      HttpHeaders add(CharSequence name, CharSequence... values);
34  
35      @Override
36      HttpHeaders addObject(CharSequence name, Object value);
37  
38      @Override
39      HttpHeaders addObject(CharSequence name, Iterable<?> values);
40  
41      @Override
42      HttpHeaders addObject(CharSequence name, Object... values);
43  
44      @Override
45      HttpHeaders addBoolean(CharSequence name, boolean value);
46  
47      @Override
48      HttpHeaders addByte(CharSequence name, byte value);
49  
50      @Override
51      HttpHeaders addChar(CharSequence name, char value);
52  
53      @Override
54      HttpHeaders addShort(CharSequence name, short value);
55  
56      @Override
57      HttpHeaders addInt(CharSequence name, int value);
58  
59      @Override
60      HttpHeaders addLong(CharSequence name, long value);
61  
62      @Override
63      HttpHeaders addFloat(CharSequence name, float value);
64  
65      @Override
66      HttpHeaders addDouble(CharSequence name, double value);
67  
68      @Override
69      HttpHeaders addTimeMillis(CharSequence name, long value);
70  
71      @Override
72      HttpHeaders add(TextHeaders headers);
73  
74      @Override
75      HttpHeaders set(CharSequence name, CharSequence value);
76  
77      @Override
78      HttpHeaders set(CharSequence name, Iterable<? extends CharSequence> values);
79  
80      @Override
81      HttpHeaders set(CharSequence name, CharSequence... values);
82  
83      @Override
84      HttpHeaders setObject(CharSequence name, Object value);
85  
86      @Override
87      HttpHeaders setObject(CharSequence name, Iterable<?> values);
88  
89      @Override
90      HttpHeaders setObject(CharSequence name, Object... values);
91  
92      @Override
93      HttpHeaders setBoolean(CharSequence name, boolean value);
94  
95      @Override
96      HttpHeaders setByte(CharSequence name, byte value);
97  
98      @Override
99      HttpHeaders setChar(CharSequence name, char value);
100 
101     @Override
102     HttpHeaders setShort(CharSequence name, short value);
103 
104     @Override
105     HttpHeaders setInt(CharSequence name, int value);
106 
107     @Override
108     HttpHeaders setLong(CharSequence name, long value);
109 
110     @Override
111     HttpHeaders setFloat(CharSequence name, float value);
112 
113     @Override
114     HttpHeaders setDouble(CharSequence name, double value);
115 
116     @Override
117     HttpHeaders setTimeMillis(CharSequence name, long value);
118 
119     @Override
120     HttpHeaders set(TextHeaders headers);
121 
122     @Override
123     HttpHeaders setAll(TextHeaders headers);
124 
125     @Override
126     HttpHeaders clear();
127 }