View Javadoc
1   /*
2    * Copyright 2014 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  
17  package io.netty.handler.codec;
18  
19  public class EmptyTextHeaders extends EmptyConvertibleHeaders<CharSequence, String> implements TextHeaders {
20      protected EmptyTextHeaders() {
21      }
22  
23      @Override
24      public boolean contains(CharSequence name, CharSequence value, boolean ignoreCase) {
25          return false;
26      }
27  
28      @Override
29      public boolean containsObject(CharSequence name, Object value, boolean ignoreCase) {
30          return false;
31      }
32  
33      @Override
34      public TextHeaders add(CharSequence name, CharSequence value) {
35          super.add(name, value);
36          return this;
37      }
38  
39      @Override
40      public TextHeaders add(CharSequence name, Iterable<? extends CharSequence> values) {
41          super.add(name, values);
42          return this;
43      }
44  
45      @Override
46      public TextHeaders add(CharSequence name, CharSequence... values) {
47          super.add(name, values);
48          return this;
49      }
50  
51      @Override
52      public TextHeaders addObject(CharSequence name, Object value) {
53          super.addObject(name, value);
54          return this;
55      }
56  
57      @Override
58      public TextHeaders addObject(CharSequence name, Iterable<?> values) {
59          super.addObject(name, values);
60          return this;
61      }
62  
63      @Override
64      public TextHeaders addObject(CharSequence name, Object... values) {
65          super.addObject(name, values);
66          return this;
67      }
68  
69      @Override
70      public TextHeaders addBoolean(CharSequence name, boolean value) {
71          super.addBoolean(name, value);
72          return this;
73      }
74  
75      @Override
76      public TextHeaders addChar(CharSequence name, char value) {
77          super.addChar(name, value);
78          return this;
79      }
80  
81      @Override
82      public TextHeaders addByte(CharSequence name, byte value) {
83          super.addByte(name, value);
84          return this;
85      }
86  
87      @Override
88      public TextHeaders addShort(CharSequence name, short value) {
89          super.addShort(name, value);
90          return this;
91      }
92  
93      @Override
94      public TextHeaders addInt(CharSequence name, int value) {
95          super.addInt(name, value);
96          return this;
97      }
98  
99      @Override
100     public TextHeaders addLong(CharSequence name, long value) {
101         super.addLong(name, value);
102         return this;
103     }
104 
105     @Override
106     public TextHeaders addFloat(CharSequence name, float value) {
107         super.addFloat(name, value);
108         return this;
109     }
110 
111     @Override
112     public TextHeaders addDouble(CharSequence name, double value) {
113         super.addDouble(name, value);
114         return this;
115     }
116 
117     @Override
118     public TextHeaders addTimeMillis(CharSequence name, long value) {
119         super.addTimeMillis(name, value);
120         return this;
121     }
122 
123     @Override
124     public TextHeaders add(TextHeaders headers) {
125         super.add(headers);
126         return this;
127     }
128 
129     @Override
130     public TextHeaders set(CharSequence name, CharSequence value) {
131         super.set(name, value);
132         return this;
133     }
134 
135     @Override
136     public TextHeaders set(CharSequence name, Iterable<? extends CharSequence> values) {
137         super.set(name, values);
138         return this;
139     }
140 
141     @Override
142     public TextHeaders set(CharSequence name, CharSequence... values) {
143         super.set(name, values);
144         return this;
145     }
146 
147     @Override
148     public TextHeaders setObject(CharSequence name, Object value) {
149         super.setObject(name, value);
150         return this;
151     }
152 
153     @Override
154     public TextHeaders setObject(CharSequence name, Iterable<?> values) {
155         super.setObject(name, values);
156         return this;
157     }
158 
159     @Override
160     public TextHeaders setObject(CharSequence name, Object... values) {
161         super.setObject(name, values);
162         return this;
163     }
164 
165     @Override
166     public TextHeaders setBoolean(CharSequence name, boolean value) {
167         super.setBoolean(name, value);
168         return this;
169     }
170 
171     @Override
172     public TextHeaders setChar(CharSequence name, char value) {
173         super.setChar(name, value);
174         return this;
175     }
176 
177     @Override
178     public TextHeaders setByte(CharSequence name, byte value) {
179         super.setByte(name, value);
180         return this;
181     }
182 
183     @Override
184     public TextHeaders setShort(CharSequence name, short value) {
185         super.setShort(name, value);
186         return this;
187     }
188 
189     @Override
190     public TextHeaders setInt(CharSequence name, int value) {
191         super.setInt(name, value);
192         return this;
193     }
194 
195     @Override
196     public TextHeaders setLong(CharSequence name, long value) {
197         super.setLong(name, value);
198         return this;
199     }
200 
201     @Override
202     public TextHeaders setFloat(CharSequence name, float value) {
203         super.setFloat(name, value);
204         return this;
205     }
206 
207     @Override
208     public TextHeaders setDouble(CharSequence name, double value) {
209         super.setDouble(name, value);
210         return this;
211     }
212 
213     @Override
214     public TextHeaders setTimeMillis(CharSequence name, long value) {
215         super.setTimeMillis(name, value);
216         return this;
217     }
218 
219     @Override
220     public TextHeaders set(TextHeaders headers) {
221         super.set(headers);
222         return this;
223     }
224 
225     @Override
226     public TextHeaders setAll(TextHeaders headers) {
227         super.setAll(headers);
228         return this;
229     }
230 
231     @Override
232     public TextHeaders clear() {
233         super.clear();
234         return this;
235     }
236 }