@Test(expected = NullPointerException.class) public void testSetNullHeaderValueValidate() { HttpHeaders headers = new DefaultHttpHeaders(true); headers.set(of("test"), (CharSequence) null); }
public abstract HttpHeaders set(String name, Object value);
HttpHeaders implements Iterable<Map.Entry<String, String>> { public abstract HttpHeaders set(String name, Object value); }
HttpHeaders implements Iterable<Map.Entry<String, String>> { public abstract HttpHeaders set(String name, Object value); protected  HttpHeaders(); }
HttpHeaders implements Iterable<Map.Entry<String, String>> { public abstract HttpHeaders set(String name, Object value); protected  HttpHeaders(); @Deprecated static boolean isKeepAlive(HttpMessage message); @Deprecated static void setKeepAlive(HttpMessage message, boolean keepAlive); @Deprecated static String getHeader(HttpMessage message, String name); @Deprecated static String getHeader(HttpMessage message, CharSequence name); @Deprecated static String getHeader(HttpMessage message, String name, String defaultValue); @Deprecated static String getHeader(HttpMessage message, CharSequence name, String defaultValue); @Deprecated static void setHeader(HttpMessage message, String name, Object value); @Deprecated static void setHeader(HttpMessage message, CharSequence name, Object value); @Deprecated static void setHeader(HttpMessage message, String name, Iterable<?> values); @Deprecated static void setHeader(HttpMessage message, CharSequence name, Iterable<?> values); @Deprecated static void addHeader(HttpMessage message, String name, Object value); @Deprecated static void addHeader(HttpMessage message, CharSequence name, Object value); @Deprecated static void removeHeader(HttpMessage message, String name); @Deprecated static void removeHeader(HttpMessage message, CharSequence name); @Deprecated static void clearHeaders(HttpMessage message); @Deprecated static int getIntHeader(HttpMessage message, String name); @Deprecated static int getIntHeader(HttpMessage message, CharSequence name); @Deprecated static int getIntHeader(HttpMessage message, String name, int defaultValue); @Deprecated static int getIntHeader(HttpMessage message, CharSequence name, int defaultValue); @Deprecated static void setIntHeader(HttpMessage message, String name, int value); @Deprecated static void setIntHeader(HttpMessage message, CharSequence name, int value); @Deprecated static void setIntHeader(HttpMessage message, String name, Iterable<Integer> values); @Deprecated static void setIntHeader(HttpMessage message, CharSequence name, Iterable<Integer> values); @Deprecated static void addIntHeader(HttpMessage message, String name, int value); @Deprecated static void addIntHeader(HttpMessage message, CharSequence name, int value); @Deprecated static Date getDateHeader(HttpMessage message, String name); @Deprecated static Date getDateHeader(HttpMessage message, CharSequence name); @Deprecated static Date getDateHeader(HttpMessage message, String name, Date defaultValue); @Deprecated static Date getDateHeader(HttpMessage message, CharSequence name, Date defaultValue); @Deprecated static void setDateHeader(HttpMessage message, String name, Date value); @Deprecated static void setDateHeader(HttpMessage message, CharSequence name, Date value); @Deprecated static void setDateHeader(HttpMessage message, String name, Iterable<Date> values); @Deprecated static void setDateHeader(HttpMessage message, CharSequence name, Iterable<Date> values); @Deprecated static void addDateHeader(HttpMessage message, String name, Date value); @Deprecated static void addDateHeader(HttpMessage message, CharSequence name, Date value); @Deprecated static long getContentLength(HttpMessage message); @Deprecated static long getContentLength(HttpMessage message, long defaultValue); @Deprecated static void setContentLength(HttpMessage message, long length); @Deprecated static String getHost(HttpMessage message); @Deprecated static String getHost(HttpMessage message, String defaultValue); @Deprecated static void setHost(HttpMessage message, String value); @Deprecated static void setHost(HttpMessage message, CharSequence value); @Deprecated static Date getDate(HttpMessage message); @Deprecated static Date getDate(HttpMessage message, Date defaultValue); @Deprecated static void setDate(HttpMessage message, Date value); @Deprecated static boolean is100ContinueExpected(HttpMessage message); @Deprecated static void set100ContinueExpected(HttpMessage message); @Deprecated static void set100ContinueExpected(HttpMessage message, boolean set); @Deprecated static boolean isTransferEncodingChunked(HttpMessage message); @Deprecated static void removeTransferEncodingChunked(HttpMessage m); @Deprecated static void setTransferEncodingChunked(HttpMessage m); @Deprecated static boolean isContentLengthSet(HttpMessage m); @Deprecated static boolean equalsIgnoreCase(CharSequence name1, CharSequence name2); @Deprecated static void encodeAscii(CharSequence seq, ByteBuf buf); @Deprecated static CharSequence newEntity(String name); abstract String get(String name); String get(CharSequence name); String get(CharSequence name, String defaultValue); abstract Integer getInt(CharSequence name); abstract int getInt(CharSequence name, int defaultValue); abstract Short getShort(CharSequence name); abstract short getShort(CharSequence name, short defaultValue); abstract Long getTimeMillis(CharSequence name); abstract long getTimeMillis(CharSequence name, long defaultValue); abstract List<String> getAll(String name); List<String> getAll(CharSequence name); abstract List<Map.Entry<String, String>> entries(); abstract boolean contains(String name); @Deprecated @Override abstract Iterator<Entry<String, String>> iterator(); abstract Iterator<Entry<CharSequence, CharSequence>> iteratorCharSequence(); Iterator<String> valueStringIterator(CharSequence name); Iterator<? extends CharSequence> valueCharSequenceIterator(CharSequence name); boolean contains(CharSequence name); abstract boolean isEmpty(); abstract int size(); abstract Set<String> names(); abstract HttpHeaders add(String name, Object value); HttpHeaders add(CharSequence name, Object value); abstract HttpHeaders add(String name, Iterable<?> values); HttpHeaders add(CharSequence name, Iterable<?> values); HttpHeaders add(HttpHeaders headers); abstract HttpHeaders addInt(CharSequence name, int value); abstract HttpHeaders addShort(CharSequence name, short value); abstract HttpHeaders set(String name, Object value); HttpHeaders set(CharSequence name, Object value); abstract HttpHeaders set(String name, Iterable<?> values); HttpHeaders set(CharSequence name, Iterable<?> values); HttpHeaders set(HttpHeaders headers); HttpHeaders setAll(HttpHeaders headers); abstract HttpHeaders setInt(CharSequence name, int value); abstract HttpHeaders setShort(CharSequence name, short value); abstract HttpHeaders remove(String name); HttpHeaders remove(CharSequence name); abstract HttpHeaders clear(); boolean contains(String name, String value, boolean ignoreCase); boolean containsValue(CharSequence name, CharSequence value, boolean ignoreCase); final String getAsString(CharSequence name); final List<String> getAllAsString(CharSequence name); final Iterator<Entry<String, String>> iteratorAsString(); boolean contains(CharSequence name, CharSequence value, boolean ignoreCase); @Override String toString(); HttpHeaders copy(); }
HttpHeaders implements Iterable<Map.Entry<String, String>> { public abstract HttpHeaders set(String name, Object value); protected  HttpHeaders(); @Deprecated static boolean isKeepAlive(HttpMessage message); @Deprecated static void setKeepAlive(HttpMessage message, boolean keepAlive); @Deprecated static String getHeader(HttpMessage message, String name); @Deprecated static String getHeader(HttpMessage message, CharSequence name); @Deprecated static String getHeader(HttpMessage message, String name, String defaultValue); @Deprecated static String getHeader(HttpMessage message, CharSequence name, String defaultValue); @Deprecated static void setHeader(HttpMessage message, String name, Object value); @Deprecated static void setHeader(HttpMessage message, CharSequence name, Object value); @Deprecated static void setHeader(HttpMessage message, String name, Iterable<?> values); @Deprecated static void setHeader(HttpMessage message, CharSequence name, Iterable<?> values); @Deprecated static void addHeader(HttpMessage message, String name, Object value); @Deprecated static void addHeader(HttpMessage message, CharSequence name, Object value); @Deprecated static void removeHeader(HttpMessage message, String name); @Deprecated static void removeHeader(HttpMessage message, CharSequence name); @Deprecated static void clearHeaders(HttpMessage message); @Deprecated static int getIntHeader(HttpMessage message, String name); @Deprecated static int getIntHeader(HttpMessage message, CharSequence name); @Deprecated static int getIntHeader(HttpMessage message, String name, int defaultValue); @Deprecated static int getIntHeader(HttpMessage message, CharSequence name, int defaultValue); @Deprecated static void setIntHeader(HttpMessage message, String name, int value); @Deprecated static void setIntHeader(HttpMessage message, CharSequence name, int value); @Deprecated static void setIntHeader(HttpMessage message, String name, Iterable<Integer> values); @Deprecated static void setIntHeader(HttpMessage message, CharSequence name, Iterable<Integer> values); @Deprecated static void addIntHeader(HttpMessage message, String name, int value); @Deprecated static void addIntHeader(HttpMessage message, CharSequence name, int value); @Deprecated static Date getDateHeader(HttpMessage message, String name); @Deprecated static Date getDateHeader(HttpMessage message, CharSequence name); @Deprecated static Date getDateHeader(HttpMessage message, String name, Date defaultValue); @Deprecated static Date getDateHeader(HttpMessage message, CharSequence name, Date defaultValue); @Deprecated static void setDateHeader(HttpMessage message, String name, Date value); @Deprecated static void setDateHeader(HttpMessage message, CharSequence name, Date value); @Deprecated static void setDateHeader(HttpMessage message, String name, Iterable<Date> values); @Deprecated static void setDateHeader(HttpMessage message, CharSequence name, Iterable<Date> values); @Deprecated static void addDateHeader(HttpMessage message, String name, Date value); @Deprecated static void addDateHeader(HttpMessage message, CharSequence name, Date value); @Deprecated static long getContentLength(HttpMessage message); @Deprecated static long getContentLength(HttpMessage message, long defaultValue); @Deprecated static void setContentLength(HttpMessage message, long length); @Deprecated static String getHost(HttpMessage message); @Deprecated static String getHost(HttpMessage message, String defaultValue); @Deprecated static void setHost(HttpMessage message, String value); @Deprecated static void setHost(HttpMessage message, CharSequence value); @Deprecated static Date getDate(HttpMessage message); @Deprecated static Date getDate(HttpMessage message, Date defaultValue); @Deprecated static void setDate(HttpMessage message, Date value); @Deprecated static boolean is100ContinueExpected(HttpMessage message); @Deprecated static void set100ContinueExpected(HttpMessage message); @Deprecated static void set100ContinueExpected(HttpMessage message, boolean set); @Deprecated static boolean isTransferEncodingChunked(HttpMessage message); @Deprecated static void removeTransferEncodingChunked(HttpMessage m); @Deprecated static void setTransferEncodingChunked(HttpMessage m); @Deprecated static boolean isContentLengthSet(HttpMessage m); @Deprecated static boolean equalsIgnoreCase(CharSequence name1, CharSequence name2); @Deprecated static void encodeAscii(CharSequence seq, ByteBuf buf); @Deprecated static CharSequence newEntity(String name); abstract String get(String name); String get(CharSequence name); String get(CharSequence name, String defaultValue); abstract Integer getInt(CharSequence name); abstract int getInt(CharSequence name, int defaultValue); abstract Short getShort(CharSequence name); abstract short getShort(CharSequence name, short defaultValue); abstract Long getTimeMillis(CharSequence name); abstract long getTimeMillis(CharSequence name, long defaultValue); abstract List<String> getAll(String name); List<String> getAll(CharSequence name); abstract List<Map.Entry<String, String>> entries(); abstract boolean contains(String name); @Deprecated @Override abstract Iterator<Entry<String, String>> iterator(); abstract Iterator<Entry<CharSequence, CharSequence>> iteratorCharSequence(); Iterator<String> valueStringIterator(CharSequence name); Iterator<? extends CharSequence> valueCharSequenceIterator(CharSequence name); boolean contains(CharSequence name); abstract boolean isEmpty(); abstract int size(); abstract Set<String> names(); abstract HttpHeaders add(String name, Object value); HttpHeaders add(CharSequence name, Object value); abstract HttpHeaders add(String name, Iterable<?> values); HttpHeaders add(CharSequence name, Iterable<?> values); HttpHeaders add(HttpHeaders headers); abstract HttpHeaders addInt(CharSequence name, int value); abstract HttpHeaders addShort(CharSequence name, short value); abstract HttpHeaders set(String name, Object value); HttpHeaders set(CharSequence name, Object value); abstract HttpHeaders set(String name, Iterable<?> values); HttpHeaders set(CharSequence name, Iterable<?> values); HttpHeaders set(HttpHeaders headers); HttpHeaders setAll(HttpHeaders headers); abstract HttpHeaders setInt(CharSequence name, int value); abstract HttpHeaders setShort(CharSequence name, short value); abstract HttpHeaders remove(String name); HttpHeaders remove(CharSequence name); abstract HttpHeaders clear(); boolean contains(String name, String value, boolean ignoreCase); boolean containsValue(CharSequence name, CharSequence value, boolean ignoreCase); final String getAsString(CharSequence name); final List<String> getAllAsString(CharSequence name); final Iterator<Entry<String, String>> iteratorAsString(); boolean contains(CharSequence name, CharSequence value, boolean ignoreCase); @Override String toString(); HttpHeaders copy(); @Deprecated
    static final HttpHeaders EMPTY_HEADERS; }