Class Http1Headers

java.lang.Object
io.netty.handler.codec.http.HttpHeaders
com.linkedin.alpini.netty4.http2.Http1Headers
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>

public class Http1Headers extends io.netty.handler.codec.http.HttpHeaders
  • Constructor Details

    • Http1Headers

      public Http1Headers(boolean validateCopies)
    • Http1Headers

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

    • getHttp2Headers

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Iterator<? extends CharSequence> valueCharSequenceIterator(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(CharSequence cs)
    • names

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

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

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

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

      public io.netty.handler.codec.http.HttpHeaders add(CharSequence name, 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(CharSequence name, int value)
      Specified by:
      addInt in class io.netty.handler.codec.http.HttpHeaders
    • addShort

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

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

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

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

      public io.netty.handler.codec.http.HttpHeaders set(CharSequence name, 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(CharSequence name, int value)
      Specified by:
      setInt in class io.netty.handler.codec.http.HttpHeaders
    • setShort

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

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

      public io.netty.handler.codec.http.HttpHeaders remove(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(String name, String value, boolean ignoreCase)
      Overrides:
      contains in class io.netty.handler.codec.http.HttpHeaders
    • contains

      public boolean contains(CharSequence name, 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