public class HttpConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
checkHost |
boolean |
compatible1_0
是否兼容1.0
true:兼容
false:不兼容
默认兼容
|
static int |
MAX_FORWARD_COUNT
最大重定向次数
|
static int |
MAX_LENGTH_OF_BOUNDARY
文件上传时,boundary值的最大长度
|
static int |
MAX_LENGTH_OF_HEADER
头部,最多有多少字节,默认:24K
|
static int |
MAX_LENGTH_OF_HEADER_LINE
头部,每行最大的字节数,默认:8K
|
static int |
MAX_LENGTH_OF_MULTI_BODY
文件上传时,体的最大长度(默认值2M)
|
static int |
MAX_LENGTH_OF_MULTI_HEADER
文件上传时,头部的最大长度
|
static int |
MAX_LENGTH_OF_POST_BODY
POST体的最大长度默认值(2M)
|
static int |
MAX_LENGTH_OF_REQUEST_LINE
请求行的最大长度,默认:8K
|
int |
maxForwardCount |
int |
maxLengthOfHeader
头部,最多有多少字节
|
int |
maxLengthOfHeaderLine
头部,每行最大的字节数
|
int |
maxLengthOfRequestLine
请求行的最大长度
|
| Constructor and Description |
|---|
HttpConfig(int bindPort) |
HttpConfig(int bindPort,
String contextPath)
HttpConfig
|
public static final int MAX_LENGTH_OF_HEADER
public static final int MAX_LENGTH_OF_HEADER_LINE
public static final int MAX_LENGTH_OF_REQUEST_LINE
public static final int MAX_LENGTH_OF_BOUNDARY
public static final int MAX_LENGTH_OF_MULTI_HEADER
public static final int MAX_LENGTH_OF_MULTI_BODY
public static final int MAX_LENGTH_OF_POST_BODY
public static final int MAX_FORWARD_COUNT
public int maxLengthOfRequestLine
public int maxLengthOfHeader
public int maxLengthOfHeaderLine
public int maxForwardCount
public boolean compatible1_0
public boolean checkHost
public HttpConfig(int bindPort)
public HttpConfig(int bindPort,
String contextPath)
bindPort - bindPortcontextPath - contextPathpublic String getBindIp()
public void setBindIp(String bindIp)
bindIp - the bindIp to setpublic int getBindPort()
public Charset getCharset()
public void setCharset(Charset charset)
charset - the charset to setpublic String getServerInfo()
public void setServerInfo(String serverInfo)
serverInfo - the serverInfo to setpublic HttpRequestHandler getHttpRequestHandler()
public void setHttpRequestHandler(HttpRequestHandler httpRequestHandler)
httpRequestHandler - the httpRequestHandler to setpublic String getContextPath()
public boolean isProxied()
public void setProxied(boolean isProxied)
isProxied - the isProxied to setpublic boolean isAppendRequestHeaderString()
public void setAppendRequestHeaderString(boolean appendRequestHeaderString)
appendRequestHeaderString - the appendRequestHeaderString to setpublic int getMaxLengthOfMultiBody()
public void setMaxLengthOfMultiBody(int maxLengthOfMultiBody)
maxLengthOfMultiBody - the maxLengthOfMultiBody to setpublic HttpResponse getRespForBlackIp()
public void setRespForBlackIp(HttpResponse respForBlackIp)
public void setCheckHost(boolean checkHost)
checkHost - checkHostpublic void setCompatible1_0(boolean compatible1_0)
public boolean isPageInClasspath()
public void setPageInClasspath(boolean pageInClasspath)
public int getMaxForwardCount()
public void setMaxForwardCount(int maxForwardCount)
public int getMaxLengthOfPostBody()
public void setMaxLengthOfPostBody(int maxLengthOfPostBody)
public int getMaxLengthOfRequestLine()
public void setMaxLengthOfRequestLine(int maxLengthOfRequestLine)
public int getMaxLengthOfHeader()
public void setMaxLengthOfHeader(int maxLengthOfHeader)
public int getMaxLengthOfHeaderLine()
public void setMaxLengthOfHeaderLine(int maxLengthOfHeaderLine)
public String getName()
public void setName(String name)
Copyright © 2025. All rights reserved.