Top Description Inners Fields Constructors Methods
org.apache.hc.core5.http2.config

public Class H2Config

extends Object
Class Inheritance
Annotations
@Contract
threading:IMMUTABLE
Imports
org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.http2.frame.FrameConsts, org.apache.hc.core5.util.Args

HTTP/2 protocol configuration.
Since
5.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final boolean
public static final H2Config
private final int
public static final H2Config
private static final int
private static final boolean
private static final int
private static final int
private static final int
private final int
private final int
private final int
private final int
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
H2Config(final int headerTableSize, final boolean pushEnabled, final int maxConcurrentStreams, final int initialWindowSize, final int maxFrameSize, final int maxHeaderListSize, final boolean compressionEnabled)

Method Summary

Modifier and TypeMethod and Description
public static H2Config.Builder
copy(final H2Config config)

public static H2Config.Builder
public int
public int
public int
public int
public int
public static H2Config.Builder
public boolean
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

compressionEnabledback to summary
private final boolean compressionEnabled
DEFAULTback to summary
public static final H2Config DEFAULT
headerTableSizeback to summary
private final int headerTableSize
INITback to summary
public static final H2Config INIT
INIT_CONCURRENT_STREAMback to summary
private static final int INIT_CONCURRENT_STREAM
INIT_ENABLE_PUSHback to summary
private static final boolean INIT_ENABLE_PUSH
INIT_HEADER_TABLE_SIZEback to summary
private static final int INIT_HEADER_TABLE_SIZE
INIT_MAX_FRAME_SIZEback to summary
private static final int INIT_MAX_FRAME_SIZE
INIT_WINDOW_SIZEback to summary
private static final int INIT_WINDOW_SIZE
initialWindowSizeback to summary
private final int initialWindowSize
maxConcurrentStreamsback to summary
private final int maxConcurrentStreams
maxFrameSizeback to summary
private final int maxFrameSize
maxHeaderListSizeback to summary
private final int maxHeaderListSize
pushEnabledback to summary
private final boolean pushEnabled

Constructor Detail

H2Configback to summary
pack-priv H2Config(final int headerTableSize, final boolean pushEnabled, final int maxConcurrentStreams, final int initialWindowSize, final int maxFrameSize, final int maxHeaderListSize, final boolean compressionEnabled)

Method Detail

copyback to summary
public static H2Config.Builder copy(final H2Config config)
customback to summary
public static H2Config.Builder custom()
getHeaderTableSizeback to summary
public int getHeaderTableSize()
getInitialWindowSizeback to summary
public int getInitialWindowSize()
getMaxConcurrentStreamsback to summary
public int getMaxConcurrentStreams()
getMaxFrameSizeback to summary
public int getMaxFrameSize()
getMaxHeaderListSizeback to summary
public int getMaxHeaderListSize()
initialback to summary
public static H2Config.Builder initial()
isCompressionEnabledback to summary
public boolean isCompressionEnabled()
isPushEnabledback to summary
public boolean isPushEnabled()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.apache.hc.core5.http2.config back to summary

public Class H2Config.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean
private int
private int
private int
private int
private int
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public H2Config
public H2Config.Builder
setCompressionEnabled(final boolean compressionEnabled)

public H2Config.Builder
setHeaderTableSize(final int headerTableSize)

public H2Config.Builder
setInitialWindowSize(final int initialWindowSize)

public H2Config.Builder
setMaxConcurrentStreams(final int maxConcurrentStreams)

public H2Config.Builder
setMaxFrameSize(final int maxFrameSize)

public H2Config.Builder
setMaxHeaderListSize(final int maxHeaderListSize)

public H2Config.Builder
setPushEnabled(final boolean pushEnabled)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compressionEnabledback to summary
private boolean compressionEnabled
headerTableSizeback to summary
private int headerTableSize
initialWindowSizeback to summary
private int initialWindowSize
maxConcurrentStreamsback to summary
private int maxConcurrentStreams
maxFrameSizeback to summary
private int maxFrameSize
maxHeaderListSizeback to summary
private int maxHeaderListSize
pushEnabledback to summary
private boolean pushEnabled

Constructor Detail

Builderback to summary
pack-priv Builder()

Method Detail

buildback to summary
public H2Config build()
setCompressionEnabledback to summary
public H2Config.Builder setCompressionEnabled(final boolean compressionEnabled)
setHeaderTableSizeback to summary
public H2Config.Builder setHeaderTableSize(final int headerTableSize)
setInitialWindowSizeback to summary
public H2Config.Builder setInitialWindowSize(final int initialWindowSize)
setMaxConcurrentStreamsback to summary
public H2Config.Builder setMaxConcurrentStreams(final int maxConcurrentStreams)
setMaxFrameSizeback to summary
public H2Config.Builder setMaxFrameSize(final int maxFrameSize)
setMaxHeaderListSizeback to summary
public H2Config.Builder setMaxHeaderListSize(final int maxHeaderListSize)
setPushEnabledback to summary
public H2Config.Builder setPushEnabled(final boolean pushEnabled)