public class HTTP2Configuration extends Object
| 构造器和说明 |
|---|
HTTP2Configuration() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCharacterEncoding()
Get the charset of the text HTTP body.
|
String |
getFlowControlStrategy()
Get the HTTP2 flow control strategy.
|
int |
getInitialSessionRecvWindow()
Get the HTTP2 initial receiving window size.
|
int |
getInitialStreamSendWindow()
Get the HTTP2 initial sending window size.
|
int |
getMaxConcurrentStreams()
Get the max concurrent stream size in a HTTP2 session.
|
int |
getMaxDynamicTableSize()
Get the max dynamic table size of HTTP2 protocol.
|
int |
getMaxHeaderBlockFragment()
Set the max HTTP2 header block size.
|
int |
getMaxRequestHeadLength()
Get the max HTTP request header size.
|
int |
getMaxRequestTrailerLength()
Get the max HTTP request trailer size.
|
int |
getMaxResponseHeadLength()
Get the max HTTP response header size.
|
int |
getMaxResponseTrailerLength()
Get the max HTTP response trailer size.
|
String |
getProtocol()
Get the default HTTP protocol version.
|
SecureSessionFactory |
getSecureSessionFactory()
Get the SSL/TLS connection factory.
|
int |
getStreamIdleTimeout()
Get the HTTP2 stream idle timeout.
|
Config |
getTcpConfiguration()
Get the TCP configuration.
|
boolean |
isSecureConnectionEnabled()
If return true, the server or client enable the SSL/TLS connection.
|
void |
setCharacterEncoding(String characterEncoding)
Set the charset of the text HTTP body.
|
void |
setFlowControlStrategy(String flowControlStrategy)
Set the HTTP2 flow control strategy.
|
void |
setInitialSessionRecvWindow(int initialSessionRecvWindow)
Set the HTTP2 initial receiving window size.
|
void |
setInitialStreamSendWindow(int initialStreamSendWindow)
Set the HTTP2 initial sending window size.
|
void |
setMaxConcurrentStreams(int maxConcurrentStreams)
Set the max concurrent stream size in a HTTP2 session.
|
void |
setMaxDynamicTableSize(int maxDynamicTableSize)
Set the max dynamic table size of HTTP2 protocol.
|
void |
setMaxHeaderBlockFragment(int maxHeaderBlockFragment)
Get the max HTTP2 header block size.
|
void |
setMaxRequestHeadLength(int maxRequestHeadLength)
Set the max HTTP request header size.
|
void |
setMaxRequestTrailerLength(int maxRequestTrailerLength)
Set the max HTTP request trailer size.
|
void |
setMaxResponseHeadLength(int maxResponseHeadLength)
Set the max HTTP response header size.
|
void |
setMaxResponseTrailerLength(int maxResponseTrailerLength)
Set the max HTTP response trailer size.
|
void |
setProtocol(String protocol)
Set the default HTTP protocol version.
|
void |
setSecureConnectionEnabled(boolean isSecureConnectionEnabled)
If set true, the server or client enable the SSL/TLS connection.
|
void |
setSecureSessionFactory(SecureSessionFactory secureSessionFactory)
Set the SSL/TLS connection factory.
|
void |
setStreamIdleTimeout(int streamIdleTimeout)
Set the HTTP2 stream idle timeout.
|
void |
setTcpConfiguration(Config tcpConfiguration)
Set the TCP configuration.
|
public Config getTcpConfiguration()
public void setTcpConfiguration(Config tcpConfiguration)
tcpConfiguration - The TCP configuration.public int getMaxDynamicTableSize()
public void setMaxDynamicTableSize(int maxDynamicTableSize)
maxDynamicTableSize - The max dynamic table size of HTTP2 protocol.public int getStreamIdleTimeout()
public void setStreamIdleTimeout(int streamIdleTimeout)
streamIdleTimeout - The HTTP2 stream idle timeout. The time unit is millisecond.public String getFlowControlStrategy()
public void setFlowControlStrategy(String flowControlStrategy)
flowControlStrategy - The HTTP2 flow control strategy. The value is "simple" or "buffer".public int getInitialSessionRecvWindow()
public void setInitialSessionRecvWindow(int initialSessionRecvWindow)
initialSessionRecvWindow - The HTTP2 initial receiving window size. The unit is byte.public int getInitialStreamSendWindow()
public void setInitialStreamSendWindow(int initialStreamSendWindow)
initialStreamSendWindow - the HTTP2 initial sending window size. The unit is byte.public int getMaxConcurrentStreams()
public void setMaxConcurrentStreams(int maxConcurrentStreams)
maxConcurrentStreams - the max concurrent stream size in a HTTP2 session.public int getMaxHeaderBlockFragment()
public void setMaxHeaderBlockFragment(int maxHeaderBlockFragment)
maxHeaderBlockFragment - The max HTTP2 header block size.public int getMaxRequestHeadLength()
public void setMaxRequestHeadLength(int maxRequestHeadLength)
maxRequestHeadLength - the max HTTP request header size.public int getMaxResponseHeadLength()
public void setMaxResponseHeadLength(int maxResponseHeadLength)
maxResponseHeadLength - the max HTTP response header size.public int getMaxRequestTrailerLength()
public void setMaxRequestTrailerLength(int maxRequestTrailerLength)
maxRequestTrailerLength - the max HTTP request trailer size.public int getMaxResponseTrailerLength()
public void setMaxResponseTrailerLength(int maxResponseTrailerLength)
maxResponseTrailerLength - the max HTTP response trailer size.public String getCharacterEncoding()
public void setCharacterEncoding(String characterEncoding)
characterEncoding - the charset of the text HTTP body.public boolean isSecureConnectionEnabled()
public void setSecureConnectionEnabled(boolean isSecureConnectionEnabled)
isSecureConnectionEnabled - If set true, the server or client enable the SSL/TLS connection.public SecureSessionFactory getSecureSessionFactory()
public void setSecureSessionFactory(SecureSessionFactory secureSessionFactory)
secureSessionFactory - the SSL/TLS connection factory.public String getProtocol()
public void setProtocol(String protocol)
protocol - the default HTTP protocol version. The value is "HTTP/2.0" or "HTTP/1.1".Copyright © 2017. All rights reserved.