public class HttpConfig extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
boolean |
checkHost |
boolean |
compatible1_0
是否兼容1.0
true:兼容
false:不兼容
默认兼容
|
static String |
JSONP_PARAM_NAME
jsonp时,回调参数名
|
static int |
MAX_FORWARD_COUNT |
static int |
MAX_LENGTH_OF_BOUNDARY
文件上传时,boundary值的最大长度
|
static int |
MAX_LENGTH_OF_MULTI_BODY
文件上传时,体的最大长度(默认值2M)
|
static int |
MAX_LENGTH_OF_MULTI_HEADER
文件上传时,头部的最大长度
|
static int |
MAX_LENGTH_OF_POST_BODY
POST体的最大长度默认值(2M)
|
int |
maxForwardCount |
| 构造器和说明 |
|---|
HttpConfig(int bindPort) |
HttpConfig(int bindPort,
String contextPath)
HttpConfig
|
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 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 - public 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 String getName()
public void setName(String name)
name - the name to setpublic String getJsonpParamName()
public void setJsonpParamName(String jsonpParamName)
Copyright © 2022. All rights reserved.