Class ConnectionConfig

  • All Implemented Interfaces:
    java.lang.Cloneable

    @Contract(threading=IMMUTABLE)
    public class ConnectionConfig
    extends java.lang.Object
    implements java.lang.Cloneable
    HTTP connection configuration.
    Since:
    4.3
    • Field Detail

      • bufferSize

        private final int bufferSize
      • fragmentSizeHint

        private final int fragmentSizeHint
      • charset

        private final java.nio.charset.Charset charset
      • malformedInputAction

        private final java.nio.charset.CodingErrorAction malformedInputAction
      • unmappableInputAction

        private final java.nio.charset.CodingErrorAction unmappableInputAction
    • Constructor Detail

      • ConnectionConfig

        ConnectionConfig​(int bufferSize,
                         int fragmentSizeHint,
                         java.nio.charset.Charset charset,
                         java.nio.charset.CodingErrorAction malformedInputAction,
                         java.nio.charset.CodingErrorAction unmappableInputAction,
                         MessageConstraints messageConstraints)
    • Method Detail

      • getBufferSize

        public int getBufferSize()
      • getFragmentSizeHint

        public int getFragmentSizeHint()
      • getCharset

        public java.nio.charset.Charset getCharset()
      • getMalformedInputAction

        public java.nio.charset.CodingErrorAction getMalformedInputAction()
      • getUnmappableInputAction

        public java.nio.charset.CodingErrorAction getUnmappableInputAction()
      • clone

        protected ConnectionConfig clone()
                                  throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object