Class DefaultHttpChunkTrailer.TrailingHeaders
java.lang.Object
org.jboss.netty.handler.codec.http.HttpHeaders
org.jboss.netty.handler.codec.http.DefaultHttpHeaders
org.jboss.netty.handler.codec.http.DefaultHttpChunkTrailer.TrailingHeaders
- Enclosing class:
DefaultHttpChunkTrailer
-
Nested Class Summary
Nested classes/interfaces inherited from class HttpHeaders
HttpHeaders.Names, HttpHeaders.Values -
Field Summary
Fields inherited from class DefaultHttpHeaders
validateFields inherited from class HttpHeaders
EMPTY_HEADERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new header with the specified name and values.Adds a new header with the specified name and value.Sets a header with the specified name and values.Sets a header with the specified name and value.private static voidvalidateName(String name) Methods inherited from class DefaultHttpHeaders
clear, contains, contains, entries, get, getAll, isEmpty, iterator, names, remove, validateHeaderValue0Methods inherited from class HttpHeaders
add, addDateHeader, addHeader, addIntHeader, clearHeaders, getContentLength, getContentLength, getDate, getDate, getDateHeader, getDateHeader, getHeader, getHeader, getHost, getHost, getIntHeader, getIntHeader, is100ContinueExpected, isContentLengthSet, isKeepAlive, isTransferEncodingChunked, removeHeader, removeTransferEncodingChunked, set, set100ContinueExpected, set100ContinueExpected, setContentLength, setDate, setDateHeader, setDateHeader, setHeader, setHeader, setHost, setIntHeader, setIntHeader, setKeepAlive, setTransferEncodingChunked, validateHeaderName, validateHeaderValue, valideHeaderNameCharMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
TrailingHeaders
TrailingHeaders(boolean validateHeaders)
-
-
Method Details
-
add
Description copied from class:HttpHeadersAdds a new header with the specified name and value. If the specified value is not aString, it is converted into aStringbyObject.toString(), except in the cases ofDateandCalendar, which are formatted to the date format defined in RFC2616.- Overrides:
addin classDefaultHttpHeaders- Parameters:
name- The name of the header being addedvalue- The value of the header being added- Returns:
this
-
add
Description copied from class:HttpHeadersAdds a new header with the specified name and values. This getMethod can be represented approximately as the following code:for (Object v: values) { if (v == null) { break; } headers.add(name, v); }- Overrides:
addin classDefaultHttpHeaders- Parameters:
name- The name of the headers being setvalues- The values of the headers being set- Returns:
this
-
set
Description copied from class:HttpHeadersSets a header with the specified name and values. If there is an existing header with the same name, it is removed. This getMethod can be represented approximately as the following code:headers.remove(name); for (Object v: values) { if (v == null) { break; } headers.add(name, v); }- Overrides:
setin classDefaultHttpHeaders- Parameters:
name- The name of the headers being setvalues- The values of the headers being set- Returns:
this
-
set
Description copied from class:HttpHeadersSets a header with the specified name and value. If there is an existing header with the same name, it is removed. If the specified value is not aString, it is converted into aStringbyObject.toString(), except forDateandCalendar, which are formatted to the date format defined in RFC2616.- Overrides:
setin classDefaultHttpHeaders- Parameters:
name- The name of the header being setvalue- The value of the header being set- Returns:
this
-
validateName
-