Class HPackEncoder


  • @Internal
    public final class HPackEncoder
    extends java.lang.Object
    HPACK encoder.
    Since:
    5.0
    • Constructor Summary

      Constructors 
      Constructor Description
      HPackEncoder​(int maxTableSize, java.nio.charset.Charset charset)  
      HPackEncoder​(int maxTableSize, java.nio.charset.CharsetEncoder charsetEncoder)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encodeHeader​(org.apache.hc.core5.util.ByteArrayBuffer dst, java.lang.String name, java.lang.String value, boolean sensitive)  
      void encodeHeader​(org.apache.hc.core5.util.ByteArrayBuffer dst, org.apache.hc.core5.http.Header header)  
      void encodeHeaders​(org.apache.hc.core5.util.ByteArrayBuffer dst, java.util.List<? extends org.apache.hc.core5.http.Header> headers, boolean useHuffman)  
      int getMaxTableSize()  
      void setMaxTableSize​(int maxTableSize)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HPackEncoder

        public HPackEncoder​(int maxTableSize,
                            java.nio.charset.Charset charset)
      • HPackEncoder

        public HPackEncoder​(int maxTableSize,
                            java.nio.charset.CharsetEncoder charsetEncoder)
    • Method Detail

      • encodeHeader

        public void encodeHeader​(org.apache.hc.core5.util.ByteArrayBuffer dst,
                                 org.apache.hc.core5.http.Header header)
                          throws java.nio.charset.CharacterCodingException
        Throws:
        java.nio.charset.CharacterCodingException
      • encodeHeader

        public void encodeHeader​(org.apache.hc.core5.util.ByteArrayBuffer dst,
                                 java.lang.String name,
                                 java.lang.String value,
                                 boolean sensitive)
                          throws java.nio.charset.CharacterCodingException
        Throws:
        java.nio.charset.CharacterCodingException
      • encodeHeaders

        public void encodeHeaders​(org.apache.hc.core5.util.ByteArrayBuffer dst,
                                  java.util.List<? extends org.apache.hc.core5.http.Header> headers,
                                  boolean useHuffman)
                           throws java.nio.charset.CharacterCodingException
        Throws:
        java.nio.charset.CharacterCodingException
      • getMaxTableSize

        public int getMaxTableSize()
      • setMaxTableSize

        public void setMaxTableSize​(int maxTableSize)