Package org.apache.hc.core5.http2.config
Class H2Config
- java.lang.Object
-
- org.apache.hc.core5.http2.config.H2Config
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classH2Config.Builder
-
Field Summary
Fields Modifier and Type Field Description private booleancompressionEnabledstatic H2ConfigDEFAULTprivate intheaderTableSizestatic H2ConfigINITprivate static intINIT_CONCURRENT_STREAMprivate static booleanINIT_ENABLE_PUSHprivate static intINIT_HEADER_TABLE_SIZEprivate static intINIT_MAX_FRAME_SIZEprivate static intINIT_WINDOW_SIZEprivate intinitialWindowSizeprivate intmaxConcurrentStreamsprivate intmaxFrameSizeprivate intmaxHeaderListSizeprivate booleanpushEnabled
-
Constructor Summary
Constructors Constructor Description H2Config(int headerTableSize, boolean pushEnabled, int maxConcurrentStreams, int initialWindowSize, int maxFrameSize, int maxHeaderListSize, boolean compressionEnabled)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static H2Config.Buildercopy(H2Config config)static H2Config.Buildercustom()intgetHeaderTableSize()intgetInitialWindowSize()intgetMaxConcurrentStreams()intgetMaxFrameSize()intgetMaxHeaderListSize()static H2Config.Builderinitial()booleanisCompressionEnabled()booleanisPushEnabled()java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT
public static final H2Config DEFAULT
-
INIT
public static final H2Config INIT
-
headerTableSize
private final int headerTableSize
-
pushEnabled
private final boolean pushEnabled
-
maxConcurrentStreams
private final int maxConcurrentStreams
-
initialWindowSize
private final int initialWindowSize
-
maxFrameSize
private final int maxFrameSize
-
maxHeaderListSize
private final int maxHeaderListSize
-
compressionEnabled
private final boolean compressionEnabled
-
INIT_HEADER_TABLE_SIZE
private static final int INIT_HEADER_TABLE_SIZE
- See Also:
- Constant Field Values
-
INIT_ENABLE_PUSH
private static final boolean INIT_ENABLE_PUSH
- See Also:
- Constant Field Values
-
INIT_MAX_FRAME_SIZE
private static final int INIT_MAX_FRAME_SIZE
- See Also:
- Constant Field Values
-
INIT_WINDOW_SIZE
private static final int INIT_WINDOW_SIZE
- See Also:
- Constant Field Values
-
INIT_CONCURRENT_STREAM
private static final int INIT_CONCURRENT_STREAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHeaderTableSize
public int getHeaderTableSize()
-
isPushEnabled
public boolean isPushEnabled()
-
getMaxConcurrentStreams
public int getMaxConcurrentStreams()
-
getInitialWindowSize
public int getInitialWindowSize()
-
getMaxFrameSize
public int getMaxFrameSize()
-
getMaxHeaderListSize
public int getMaxHeaderListSize()
-
isCompressionEnabled
public boolean isCompressionEnabled()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
custom
public static H2Config.Builder custom()
-
initial
public static H2Config.Builder initial()
-
copy
public static H2Config.Builder copy(H2Config config)
-
-