Class Http1Headers

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.Map.Entry<java.lang.String,​java.lang.String>>

    public class Http1Headers
    extends io.netty.handler.codec.http.HttpHeaders
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.netty.handler.codec.http.HttpHeaders

        io.netty.handler.codec.http.HttpHeaders.Names, io.netty.handler.codec.http.HttpHeaders.Values
    • Field Summary

      • Fields inherited from class io.netty.handler.codec.http.HttpHeaders

        EMPTY_HEADERS
    • Constructor Summary

      Constructors 
      Constructor Description
      Http1Headers​(boolean validateCopies)  
      Http1Headers​(io.netty.handler.codec.http2.Http2Headers headers, boolean validateCopies)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.handler.codec.http.HttpHeaders add​(io.netty.handler.codec.http.HttpHeaders headers)  
      io.netty.handler.codec.http.HttpHeaders add​(java.lang.CharSequence name, java.lang.Iterable<?> values)  
      io.netty.handler.codec.http.HttpHeaders add​(java.lang.CharSequence name, java.lang.Object value)  
      io.netty.handler.codec.http.HttpHeaders add​(java.lang.String name, java.lang.Iterable<?> values)  
      io.netty.handler.codec.http.HttpHeaders add​(java.lang.String name, java.lang.Object value)  
      io.netty.handler.codec.http.HttpHeaders addInt​(java.lang.CharSequence name, int value)  
      io.netty.handler.codec.http.HttpHeaders addShort​(java.lang.CharSequence name, short value)  
      io.netty.handler.codec.http.HttpHeaders clear()  
      boolean contains​(java.lang.CharSequence name)  
      boolean contains​(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)  
      boolean contains​(java.lang.String name)  
      boolean contains​(java.lang.String name, java.lang.String value, boolean ignoreCase)  
      Http1Headers copy()  
      java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>> entries()  
      java.lang.String get​(java.lang.CharSequence name)  
      java.lang.String get​(java.lang.CharSequence name, java.lang.String defaultValue)  
      java.lang.String get​(java.lang.String name)  
      java.util.List<java.lang.String> getAll​(java.lang.CharSequence name)  
      java.util.List<java.lang.String> getAll​(java.lang.String name)  
      io.netty.handler.codec.http2.Http2Headers getHttp2Headers()  
      java.lang.Integer getInt​(java.lang.CharSequence name)  
      int getInt​(java.lang.CharSequence name, int defaultValue)  
      java.lang.Short getShort​(java.lang.CharSequence name)  
      short getShort​(java.lang.CharSequence name, short defaultValue)  
      java.lang.Long getTimeMillis​(java.lang.CharSequence name)  
      long getTimeMillis​(java.lang.CharSequence name, long defaultValue)  
      boolean isEmpty()  
      protected boolean isVisible​(java.lang.CharSequence cs)  
      java.util.Iterator<java.util.Map.Entry<java.lang.String,​java.lang.String>> iterator()  
      java.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,​java.lang.CharSequence>> iteratorCharSequence()  
      java.util.Set<java.lang.String> names()  
      io.netty.handler.codec.http.HttpHeaders remove​(java.lang.CharSequence name)  
      io.netty.handler.codec.http.HttpHeaders remove​(java.lang.String name)  
      io.netty.handler.codec.http.HttpHeaders set​(io.netty.handler.codec.http.HttpHeaders headers)  
      io.netty.handler.codec.http.HttpHeaders set​(java.lang.CharSequence name, java.lang.Iterable<?> values)  
      io.netty.handler.codec.http.HttpHeaders set​(java.lang.CharSequence name, java.lang.Object value)  
      io.netty.handler.codec.http.HttpHeaders set​(java.lang.String name, java.lang.Iterable<?> values)  
      io.netty.handler.codec.http.HttpHeaders set​(java.lang.String name, java.lang.Object value)  
      io.netty.handler.codec.http.HttpHeaders setAll​(io.netty.handler.codec.http.HttpHeaders headers)  
      io.netty.handler.codec.http.HttpHeaders setInt​(java.lang.CharSequence name, int value)  
      io.netty.handler.codec.http.HttpHeaders setShort​(java.lang.CharSequence name, short value)  
      int size()  
      java.util.Iterator<? extends java.lang.CharSequence> valueCharSequenceIterator​(java.lang.CharSequence name)  
      java.util.Iterator<java.lang.String> valueStringIterator​(java.lang.CharSequence name)  
      • Methods inherited from class io.netty.handler.codec.http.HttpHeaders

        addDateHeader, addDateHeader, addHeader, addHeader, addIntHeader, addIntHeader, clearHeaders, containsValue, encodeAscii, equalsIgnoreCase, getAllAsString, getAsString, getContentLength, getContentLength, getDate, getDate, getDateHeader, getDateHeader, getDateHeader, getDateHeader, getHeader, getHeader, getHeader, getHeader, getHost, getHost, getIntHeader, getIntHeader, getIntHeader, getIntHeader, is100ContinueExpected, isContentLengthSet, isKeepAlive, isTransferEncodingChunked, iteratorAsString, newEntity, removeHeader, removeHeader, removeTransferEncodingChunked, set100ContinueExpected, set100ContinueExpected, setContentLength, setDate, setDateHeader, setDateHeader, setDateHeader, setDateHeader, setHeader, setHeader, setHeader, setHeader, setHost, setHost, setIntHeader, setIntHeader, setIntHeader, setIntHeader, setKeepAlive, setTransferEncodingChunked, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • Http1Headers

        public Http1Headers​(boolean validateCopies)
      • Http1Headers

        public Http1Headers​(io.netty.handler.codec.http2.Http2Headers headers,
                            boolean validateCopies)
    • Method Detail

      • getHttp2Headers

        public io.netty.handler.codec.http2.Http2Headers getHttp2Headers()
      • get

        public java.lang.String get​(java.lang.String name)
        Specified by:
        get in class io.netty.handler.codec.http.HttpHeaders
      • get

        public java.lang.String get​(java.lang.CharSequence name)
        Overrides:
        get in class io.netty.handler.codec.http.HttpHeaders
      • get

        public java.lang.String get​(java.lang.CharSequence name,
                                    java.lang.String defaultValue)
        Overrides:
        get in class io.netty.handler.codec.http.HttpHeaders
      • getInt

        public java.lang.Integer getInt​(java.lang.CharSequence name)
        Specified by:
        getInt in class io.netty.handler.codec.http.HttpHeaders
      • getInt

        public int getInt​(java.lang.CharSequence name,
                          int defaultValue)
        Specified by:
        getInt in class io.netty.handler.codec.http.HttpHeaders
      • getShort

        public java.lang.Short getShort​(java.lang.CharSequence name)
        Specified by:
        getShort in class io.netty.handler.codec.http.HttpHeaders
      • getShort

        public short getShort​(java.lang.CharSequence name,
                              short defaultValue)
        Specified by:
        getShort in class io.netty.handler.codec.http.HttpHeaders
      • getTimeMillis

        public java.lang.Long getTimeMillis​(java.lang.CharSequence name)
        Specified by:
        getTimeMillis in class io.netty.handler.codec.http.HttpHeaders
      • getTimeMillis

        public long getTimeMillis​(java.lang.CharSequence name,
                                  long defaultValue)
        Specified by:
        getTimeMillis in class io.netty.handler.codec.http.HttpHeaders
      • getAll

        public java.util.List<java.lang.String> getAll​(java.lang.String name)
        Specified by:
        getAll in class io.netty.handler.codec.http.HttpHeaders
      • getAll

        public java.util.List<java.lang.String> getAll​(java.lang.CharSequence name)
        Overrides:
        getAll in class io.netty.handler.codec.http.HttpHeaders
      • entries

        public java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>> entries()
        Specified by:
        entries in class io.netty.handler.codec.http.HttpHeaders
      • contains

        public boolean contains​(java.lang.String name)
        Specified by:
        contains in class io.netty.handler.codec.http.HttpHeaders
      • contains

        public boolean contains​(java.lang.CharSequence name)
        Overrides:
        contains in class io.netty.handler.codec.http.HttpHeaders
      • iterator

        @Nonnull
        public java.util.Iterator<java.util.Map.Entry<java.lang.String,​java.lang.String>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.util.Map.Entry<java.lang.String,​java.lang.String>>
        Specified by:
        iterator in class io.netty.handler.codec.http.HttpHeaders
      • iteratorCharSequence

        public java.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,​java.lang.CharSequence>> iteratorCharSequence()
        Specified by:
        iteratorCharSequence in class io.netty.handler.codec.http.HttpHeaders
      • valueStringIterator

        public java.util.Iterator<java.lang.String> valueStringIterator​(java.lang.CharSequence name)
        Overrides:
        valueStringIterator in class io.netty.handler.codec.http.HttpHeaders
      • valueCharSequenceIterator

        public java.util.Iterator<? extends java.lang.CharSequence> valueCharSequenceIterator​(java.lang.CharSequence name)
        Overrides:
        valueCharSequenceIterator in class io.netty.handler.codec.http.HttpHeaders
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in class io.netty.handler.codec.http.HttpHeaders
      • size

        public int size()
        Specified by:
        size in class io.netty.handler.codec.http.HttpHeaders
      • isVisible

        protected boolean isVisible​(java.lang.CharSequence cs)
      • names

        public java.util.Set<java.lang.String> names()
        Specified by:
        names in class io.netty.handler.codec.http.HttpHeaders
      • add

        public io.netty.handler.codec.http.HttpHeaders add​(java.lang.String name,
                                                           java.lang.Object value)
        Specified by:
        add in class io.netty.handler.codec.http.HttpHeaders
      • add

        public io.netty.handler.codec.http.HttpHeaders add​(java.lang.CharSequence name,
                                                           java.lang.Object value)
        Overrides:
        add in class io.netty.handler.codec.http.HttpHeaders
      • add

        public io.netty.handler.codec.http.HttpHeaders add​(java.lang.String name,
                                                           java.lang.Iterable<?> values)
        Specified by:
        add in class io.netty.handler.codec.http.HttpHeaders
      • add

        public io.netty.handler.codec.http.HttpHeaders add​(java.lang.CharSequence name,
                                                           java.lang.Iterable<?> values)
        Overrides:
        add in class io.netty.handler.codec.http.HttpHeaders
      • add

        public io.netty.handler.codec.http.HttpHeaders add​(io.netty.handler.codec.http.HttpHeaders headers)
        Overrides:
        add in class io.netty.handler.codec.http.HttpHeaders
      • addInt

        public io.netty.handler.codec.http.HttpHeaders addInt​(java.lang.CharSequence name,
                                                              int value)
        Specified by:
        addInt in class io.netty.handler.codec.http.HttpHeaders
      • addShort

        public io.netty.handler.codec.http.HttpHeaders addShort​(java.lang.CharSequence name,
                                                                short value)
        Specified by:
        addShort in class io.netty.handler.codec.http.HttpHeaders
      • set

        public io.netty.handler.codec.http.HttpHeaders set​(java.lang.String name,
                                                           java.lang.Object value)
        Specified by:
        set in class io.netty.handler.codec.http.HttpHeaders
      • set

        public io.netty.handler.codec.http.HttpHeaders set​(java.lang.CharSequence name,
                                                           java.lang.Object value)
        Overrides:
        set in class io.netty.handler.codec.http.HttpHeaders
      • set

        public io.netty.handler.codec.http.HttpHeaders set​(java.lang.String name,
                                                           java.lang.Iterable<?> values)
        Specified by:
        set in class io.netty.handler.codec.http.HttpHeaders
      • set

        public io.netty.handler.codec.http.HttpHeaders set​(java.lang.CharSequence name,
                                                           java.lang.Iterable<?> values)
        Overrides:
        set in class io.netty.handler.codec.http.HttpHeaders
      • set

        public io.netty.handler.codec.http.HttpHeaders set​(io.netty.handler.codec.http.HttpHeaders headers)
        Overrides:
        set in class io.netty.handler.codec.http.HttpHeaders
      • setAll

        public io.netty.handler.codec.http.HttpHeaders setAll​(io.netty.handler.codec.http.HttpHeaders headers)
        Overrides:
        setAll in class io.netty.handler.codec.http.HttpHeaders
      • setInt

        public io.netty.handler.codec.http.HttpHeaders setInt​(java.lang.CharSequence name,
                                                              int value)
        Specified by:
        setInt in class io.netty.handler.codec.http.HttpHeaders
      • setShort

        public io.netty.handler.codec.http.HttpHeaders setShort​(java.lang.CharSequence name,
                                                                short value)
        Specified by:
        setShort in class io.netty.handler.codec.http.HttpHeaders
      • remove

        public io.netty.handler.codec.http.HttpHeaders remove​(java.lang.String name)
        Specified by:
        remove in class io.netty.handler.codec.http.HttpHeaders
      • remove

        public io.netty.handler.codec.http.HttpHeaders remove​(java.lang.CharSequence name)
        Overrides:
        remove in class io.netty.handler.codec.http.HttpHeaders
      • clear

        public io.netty.handler.codec.http.HttpHeaders clear()
        Specified by:
        clear in class io.netty.handler.codec.http.HttpHeaders
      • contains

        public boolean contains​(java.lang.String name,
                                java.lang.String value,
                                boolean ignoreCase)
        Overrides:
        contains in class io.netty.handler.codec.http.HttpHeaders
      • contains

        public boolean contains​(java.lang.CharSequence name,
                                java.lang.CharSequence value,
                                boolean ignoreCase)
        Overrides:
        contains in class io.netty.handler.codec.http.HttpHeaders
      • copy

        public Http1Headers copy()
        Overrides:
        copy in class io.netty.handler.codec.http.HttpHeaders