- get(URI) - Method in interface org.dromara.hutool.http.client.cookie.CookieStoreSpi
-
根据HttpUrl从缓存中读取cookie集合
- get(URI) - Method in class org.dromara.hutool.http.client.cookie.InMemoryCookieStore
-
- get(URI) - Method in class org.dromara.hutool.http.client.cookie.ThreadLocalCookieStore
-
- get(URI) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieStore
-
- get(String) - Method in enum org.dromara.hutool.http.GlobalCompressStreamRegister
-
获取解压器
- get(String, Charset) - Static method in class org.dromara.hutool.http.HttpUtil
-
发送get请求
- get(String) - Static method in class org.dromara.hutool.http.HttpUtil
-
发送get请求
- get(String, int) - Static method in class org.dromara.hutool.http.HttpUtil
-
发送get请求
- get(String, Map<String, Object>) - Static method in class org.dromara.hutool.http.HttpUtil
-
发送get请求
- get(String) - Static method in enum org.dromara.hutool.http.meta.ContentType
-
从请求参数的body中判断请求的Content-Type类型,支持的类型有:
1. application/json
1. application/xml
- getAcceptedIssuers() - Method in class org.dromara.hutool.http.server.engine.tomcat.JSSESSLContext
-
- getAddress() - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
获取服务器地址信息
- getArrayParam(String) - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获得数组表单值
- getAttribute(String) - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
自定义属性,用于扩展
- getAttribute(String) - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- getAttribute(String) - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- getAttribute(String) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- getAttribute(String) - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- getAttribute(String) - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getAuth() - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
获取代理验证信息
- getAuthHost() - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
获取代理验证主机
- getAuthPort() - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
获取代理验证端口
- getBody() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
- getBody(Charset) - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取请求体文本,可以是form表单、json、xml等任意内容
- getBody(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获取请求体
调用该方法后,getParam方法将失效
- getBody(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获取请求体
调用该方法后,getParam方法将失效
- getBody() - Method in class org.dromara.hutool.http.webservice.SoapResponse
-
获取SOAP消息体
- getBodyBytes() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
- getBodyBytes() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取body的bytes数组
- getBodyBytes(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获取请求体byte[]
调用该方法后,getParam方法将失效
- getBodyBytes(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获取请求体byte[]
调用该方法后,getParam方法将失效
- getBodyStream() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpRequest
-
- getBodyStream() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
- getBodyStream() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatRequest
-
- getBodyStream() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowRequest
-
- getBodyStream() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取请求体流
- getBodyStream() - Method in class org.dromara.hutool.http.server.servlet.JavaxServletRequest
-
- getBodyStream() - Method in class org.dromara.hutool.http.server.servlet.ServletRequest
-
- getBodyText() - Method in class org.dromara.hutool.http.webservice.SoapResponse
-
获取SOAP消息体中的文本内容
- getBoundary() - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
获取全局默认的Multipart边界
- getBrowser() - Method in class org.dromara.hutool.http.useragent.UserAgent
-
获取浏览器类型
- getBytes() - Method in interface org.dromara.hutool.http.client.body.HttpBody
-
获取请求(响应)体字节码
- getBytes() - Method in class org.dromara.hutool.http.client.body.ResponseBody
-
获取响应内容的bytes
- getCertificateChain(String) - Method in class org.dromara.hutool.http.server.engine.tomcat.JSSESSLContext
-
- getCharset(String) - Static method in class org.dromara.hutool.http.meta.ContentTypeUtil
-
从Http连接的头信息中获得字符集
从ContentType中获取
- getCharset() - Method in class org.dromara.hutool.http.meta.HttpHeaderUtil.ExtendedValue
-
获取编码,无定义为null
- getCharset() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpResponse
-
- getCharset() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
- getCharset() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
- getCharset() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatResponse
-
- getCharset() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowRequest
-
- getCharset() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
-
- getCharset() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取编码,获取失败默认使用UTF-8,获取规则如下:
1、从Content-Type头中获取编码,类似于:text/html;charset=utf-8
- getCharset() - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
获取编码,默认为UTF-8
- getCharset() - Method in class org.dromara.hutool.http.server.servlet.JavaxServletResponse
-
- getCharset() - Method in class org.dromara.hutool.http.server.servlet.ServletResponse
-
- getCharsetName(String) - Static method in class org.dromara.hutool.http.meta.ContentTypeUtil
-
从Http连接的头信息中获得字符集
从ContentType中获取
- getClientIP(String...) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
获取客户端IP
默认检测的Header:
1、X-Forwarded-For
2、X-Real-IP
3、Proxy-Client-IP
4、WL-Proxy-Client-IP
otherHeaderNames参数用于自定义检测的Header
需要注意的是,使用此方法获取的客户IP地址必须在Http服务器(例如Nginx)中配置头信息,否则容易造成IP伪造。
- getClientIP(HttpServletRequest, String...) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获取客户端IP
默认检测的Header:
1、X-Forwarded-For
2、X-Real-IP
3、Proxy-Client-IP
4、WL-Proxy-Client-IP
otherHeaderNames参数用于自定义检测的Header
需要注意的是,使用此方法获取的客户IP地址必须在Http服务器(例如Nginx)中配置头信息,否则容易造成IP伪造。
- getClientIP(HttpServletRequest, String...) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获取客户端IP
默认检测的Header:
1、X-Forwarded-For
2、X-Real-IP
3、Proxy-Client-IP
4、WL-Proxy-Client-IP
otherHeaderNames参数用于自定义检测的Header
需要注意的是,使用此方法获取的客户IP地址必须在Http服务器(例如Nginx)中配置头信息,否则容易造成IP伪造。
- getClientIPByHeader(String...) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
获取客户端IP
headerNames参数用于自定义检测的Header
需要注意的是,使用此方法获取的客户IP地址必须在Http服务器(例如Nginx)中配置头信息,否则容易造成IP伪造。
- getClientIPByHeader(HttpServletRequest, String...) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获取客户端IP
headerNames参数用于自定义检测的Header
需要注意的是,使用此方法获取的客户IP地址必须在Http服务器(例如Nginx)中配置头信息,否则容易造成IP伪造。
- getClientIPByHeader(HttpServletRequest, String...) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获取客户端IP
headerNames参数用于自定义检测的Header
需要注意的是,使用此方法获取的客户IP地址必须在Http服务器(例如Nginx)中配置头信息,否则容易造成IP伪造。
- getCode() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获取响应码
- getConnectionTimeout() - Method in class org.dromara.hutool.http.client.ClientConfig
-
获取连接超时,单位:毫秒
- getContent() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4BodyEntity
-
- getContent() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5BodyEntity
-
- getContentDisposition() - Method in class org.dromara.hutool.http.multipart.UploadFileHeader
-
Returns content disposition.
- getContentLength() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4BodyEntity
-
- getContentLength() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5BodyEntity
-
- getContentLength() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取Content-Length头信息,单位:字节
- getContentType() - Method in class org.dromara.hutool.http.multipart.UploadFileHeader
-
Returns uploaded content type.
- getContentType() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取Content-Type头信息
- getContentTypeByRequestBody(String) - Static method in class org.dromara.hutool.http.meta.ContentTypeUtil
-
从请求参数的body中判断请求的Content-Type类型,支持的类型有:
1. application/json
1. application/xml
- getCookie(String) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
-
获取Cookie
- getCookie(String) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
获得指定Cookie名对应的HttpCookie对象
- getCookie(HttpServletRequest, String) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获得指定的Cookie
- getCookie(HttpServletRequest, String) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获得指定的Cookie
- getCookieManager() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkClientEngine
-
获取Cookie管理器
- getCookieManager() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
-
- getCookieMap() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
获得Cookie信息Map,键为Cookie名,值为HttpCookie对象
- getCookies() - Method in interface org.dromara.hutool.http.client.cookie.CookieStoreSpi
-
获取全部缓存cookie
- getCookies() - Method in class org.dromara.hutool.http.client.cookie.InMemoryCookieStore
-
- getCookies() - Method in class org.dromara.hutool.http.client.cookie.ThreadLocalCookieStore
-
- getCookies() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4CookieStore
-
- getCookies() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5CookieStore
-
- getCookies(JdkHttpConnection) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
-
获取指定域名下所有Cookie信息
- getCookies() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieStore
-
- getCookies() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
-
获取Cookie
如果启用Cookie管理器,则返回这个站点相关的所有Cookie信息,否则返回当前的响应的Cookie信息
- getCookies() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
获得Cookie信息列表
- getCookiesStr() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获得Cookie信息字符串
- getCookieStore() - Method in class org.dromara.hutool.http.client.cookie.ThreadLocalCookieStore
-
获取本线程下的CookieStore
- getCookieStore() - Method in class org.dromara.hutool.http.client.engine.AbstractClientEngine
-
获得Cookie存储器
- getCookieStore() - Method in class org.dromara.hutool.http.client.engine.okhttp.CookieJarImpl
-
获取Cookie存储器
- getCookieStr() - Method in interface org.dromara.hutool.http.client.Response
-
获取本次请求服务器返回的Cookie信息
- getCookieValue(String) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
-
获取Cookie值
- getCoreThreads() - Method in class org.dromara.hutool.http.server.ServerConfig
-
获取核心线程数
- getDecodeValue() - Method in class org.dromara.hutool.http.meta.HttpHeaderUtil.ExtendedValue
-
获取解码后的值
- getDefaultCipherSuites() - Method in class org.dromara.hutool.http.ssl.CustomProtocolsSSLFactory
-
- getDomain() - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
限制 Cookie 主机作用域,一般包含子域名
Cookie 作用域,默认为空,表示所有域名下生效
- getDomain() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- getDomain() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- getDomain() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- getDomain() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- getEngine() - Static method in class org.dromara.hutool.http.client.engine.ClientEngineFactory
-
获得单例的ClientEngine
- getEngine() - Static method in class org.dromara.hutool.http.server.engine.ServerEngineFactory
-
获得单例的ServerEngine
- getEngine() - Method in class org.dromara.hutool.http.useragent.UserAgent
-
获取引擎类型
- getEngineVersion() - Method in class org.dromara.hutool.http.useragent.UserAgent
-
获取引擎版本
- getErrorStream() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
当返回错误代码时,获得错误内容流
- getExchange() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerExchangeBase
-
获取HttpExchange对象
- getExchange() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowExchangeBase
-
获取原始Undertow请求对象
- getExchange() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
-
获取原始的HttpServerExchange对象
- getFault() - Method in class org.dromara.hutool.http.webservice.SoapResponse
-
获取SOAP消息体中的错误信息,null表示没有错误
- getFile(String) - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获取上传的文件
- getFileContent() - Method in class org.dromara.hutool.http.multipart.UploadFile
-
- getFileExts() - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
- getFileInputStream() - Method in class org.dromara.hutool.http.multipart.UploadFile
-
- getFileList(String) - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获得某个属性名的所有文件
当表单中两个文件使用同一个name的时候
- getFileListValueMap() - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获取文件映射
- getFileMap() - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获取文件映射
- getFileName() - Method in class org.dromara.hutool.http.multipart.UploadFile
-
- getFileName() - Method in class org.dromara.hutool.http.multipart.UploadFileHeader
-
获取文件名,不包括路径
- getFileNameFromDisposition(String) - Method in interface org.dromara.hutool.http.client.Response
-
从Content-Disposition头中获取文件名,以参数名为`filename`为例,规则为:
首先按照RFC5987规范检查`filename*`参数对应的值,即:`filename*="example.txt"`,则获取`example.txt`
如果找不到`filename*`参数,则检查`filename`参数对应的值,即:`filename="example.txt"`,则获取`example.txt`
按照规范,`Content-Disposition`可能返回多个,此处遍历所有返回头,并且`filename*`始终优先获取,即使`filename`存在并更靠前。
- getFileNameFromDisposition(Map<String, List<String>>, String) - Static method in class org.dromara.hutool.http.meta.HttpHeaderUtil
-
从Content-Disposition头中获取文件名。
- getFileParamNames() - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获取上传的文件属性名集合
- getFiles(String) - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获得某个属性名的所有文件
当表单中两个文件使用同一个name的时候
- getFormFieldName() - Method in class org.dromara.hutool.http.multipart.UploadFileHeader
-
返回表单字段名
- getFormFileName() - Method in class org.dromara.hutool.http.multipart.UploadFileHeader
-
返回表单中的文件名,来自客户端传入
- getHeader() - Method in class org.dromara.hutool.http.multipart.UploadFile
-
- getHeader(String) - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpRequest
-
- getHeader(String) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
- getHeader(String) - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatRequest
-
- getHeader(String) - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowRequest
-
- getHeader(String) - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取请求头
- getHeader(HeaderName) - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获得请求header中的信息
- getHeader(String, Charset) - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获得请求header中的信息
- getHeader(String) - Method in class org.dromara.hutool.http.server.servlet.JavaxServletRequest
-
- getHeader(HttpServletRequest, String, Charset) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获得请求header中的信息
- getHeader(String) - Method in class org.dromara.hutool.http.server.servlet.ServletRequest
-
- getHeader(HttpServletRequest, String, Charset) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获得请求header中的信息
- getHeaderIgnoreCase(HttpServletRequest, String) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
忽略大小写获得请求header中的信息
- getHeaderIgnoreCase(HttpServletRequest, String) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
忽略大小写获得请求header中的信息
- getHeaderMap() - Method in class org.dromara.hutool.http.server.servlet.JavaxServletRequest
-
获取所有请求头
- getHeaderMap(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获取请求所有的头(header)信息
- getHeaderMap() - Method in class org.dromara.hutool.http.server.servlet.ServletRequest
-
获取所有请求头
- getHeaderMap(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获取请求所有的头(header)信息
- getHeaderNames() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpRequest
-
获取所有Header名称
- getHeaders() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
获得请求header中的信息
- getHeaders() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
获得所有响应头,获取后可以添加新的响应头
- getHeaders() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowRequest
-
获取所有请求头
- getHeadersMap() - Method in class org.dromara.hutool.http.server.servlet.JavaxServletRequest
-
获取所有请求头,包括多个相同名称的请求头
- getHeadersMap(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获取请求所有的头(header)信息
- getHeadersMap(HttpServletResponse) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获取响应所有的头(header)信息
- getHeadersMap() - Method in class org.dromara.hutool.http.server.servlet.ServletRequest
-
获取所有请求头,包括多个相同名称的请求头
- getHeadersMap(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获取请求所有的头(header)信息
- getHeadersMap(HttpServletResponse) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获取响应所有的头(header)信息
- getHost() - Method in class org.dromara.hutool.http.server.ServerConfig
-
获取服务器地址,默认127.0.0.1
- getHostnameVerifier() - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
- getHttpContext() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getHttpContext() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerExchangeBase
-
获取HttpContext
- getHttpResponse() - Method in class org.dromara.hutool.http.webservice.SoapResponse
-
获取原始HTTP响应
- getHttpURLConnection() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获取HttpURLConnection对象
- getIdleTimeout() - Method in class org.dromara.hutool.http.server.ServerConfig
-
获取空闲超时时间
- getInputStream() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获得输入流对象
输入流对象用于读取数据
- getLanguage() - Method in class org.dromara.hutool.http.meta.HttpHeaderUtil.ExtendedValue
-
获取语言
- getLastHeader() - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
-
获取最后的头信息
- getListParam(String) - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获得集合表单值
- getLocalAddress() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getLocationUrl(UrlBuilder, String) - Static method in class org.dromara.hutool.http.HttpUrlUtil
-
获取转发的新的URL
- getMaxBodySize() - Method in class org.dromara.hutool.http.server.ServerConfig
-
获取最大消息体大小
- getMaxFileSize() - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
- getMaxHeaderSize() - Method in class org.dromara.hutool.http.server.ServerConfig
-
获取最大请求(响应)头大小
- getMaxIdle() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpClientConfig
-
获取最大空闲连接数
- getMaxPerRoute() - Method in class org.dromara.hutool.http.client.ApacheHttpClientConfig
-
获取每个路由的最大连接数
- getMaxRedirects() - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
获取全局默认的最大重定向次数,如设置0表示不重定向
如果设置为1,表示重定向一次,即请求两次
- getMaxThreads() - Method in class org.dromara.hutool.http.server.ServerConfig
-
获取最大线程数
- getMaxTotal() - Method in class org.dromara.hutool.http.client.ApacheHttpClientConfig
-
获取最大连接总数
- getMemoryThreshold() - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
- getMessage() - Method in class org.dromara.hutool.http.webservice.SoapClient
-
获取SOAP消息对象 SOAPMessage
- getMessage() - Method in class org.dromara.hutool.http.webservice.SoapResponse
-
获取SOAP消息
- getMethod() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获取请求方法,GET/POST
- getMethod() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpRequest
-
- getMethod() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
- getMethod() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatRequest
-
- getMethod() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowRequest
-
- getMethod() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取请求方法
- getMethod() - Method in class org.dromara.hutool.http.server.servlet.JavaxServletRequest
-
- getMethod() - Method in class org.dromara.hutool.http.server.servlet.ServletRequest
-
- getMethodEle() - Method in class org.dromara.hutool.http.webservice.SoapClient
-
获取方法节点
用于创建子节点等操作
- getMimeSubtype() - Method in class org.dromara.hutool.http.multipart.UploadFileHeader
-
Returns file sub type MIME.
- getMimeType() - Method in class org.dromara.hutool.http.multipart.UploadFileHeader
-
Returns file types MIME.
- getMsgStr(boolean) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
获取SOAP请求消息
- getMultipart() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
- getMultipart() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获得MultiPart表单内容,多用于获得上传的文件
- getMultipart(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获得MultiPart表单内容,多用于获得上传的文件 在同一次请求中,此方法只能被执行一次!
- getMultipart(ServletRequest, UploadSetting) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获得multipart/form-data 表单内容
包括文件和普通表单数据
在同一次请求中,此方法只能被执行一次!
- getMultipart(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获得MultiPart表单内容,多用于获得上传的文件 在同一次请求中,此方法只能被执行一次!
- getMultipart(ServletRequest, UploadSetting) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获得multipart/form-data 表单内容
包括文件和普通表单数据
在同一次请求中,此方法只能被执行一次!
- getName() - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
获取Cookie名称
- getName() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- getName() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- getName() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- getName() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- getName() - Method in class org.dromara.hutool.http.useragent.UserAgentInfo
-
获取信息名称
- getOs() - Method in class org.dromara.hutool.http.useragent.UserAgent
-
获取系统类型
- getOsVersion() - Method in class org.dromara.hutool.http.useragent.UserAgent
-
获取系统版本
- getOutputStream() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获取输出流对象 输出流对象用于发送数据
- getOutputStream() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpResponse
-
- getOutputStream() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
- getOutputStream() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatResponse
-
- getOutputStream() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
-
- getOutputStream() - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
获取输出流,用于写出数据
- getOutputStream() - Method in class org.dromara.hutool.http.server.servlet.JavaxServletResponse
-
- getOutputStream() - Method in class org.dromara.hutool.http.server.servlet.ServletResponse
-
- getParam(String) - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
返回单一参数值,如果有多个只返回第一个
- getParam(String) - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取指定名称的参数值,取第一个值
- getParamListMap() - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获取所有属性的集合
- getParamMap() - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
获取所有属性的集合
- getParamMap(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获得所有请求参数
- getParamMap(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获得所有请求参数
- getParamNames() - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
- getParams() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
- getParams(String) - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取指定名称的参数值
- getParams() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取参数Map
- getParams(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获得所有请求参数
- getParams(ServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获得所有请求参数
- getPath() - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
限制 Cookie URL路径作用域,该 URL 路径必须存在于请求的 URL 中,子路径也会匹配
Cookie 作用域,默认为空,表示所有路径下生效
- getPath() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- getPath() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- getPath() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- getPath() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- getPath() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpRequest
-
- getPath() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
- getPath() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatRequest
-
- getPath() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowRequest
-
- getPath() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取请求路径,包含请求参数部分
- getPath() - Method in class org.dromara.hutool.http.server.servlet.JavaxServletRequest
-
- getPath() - Method in class org.dromara.hutool.http.server.servlet.ServletRequest
-
- getPattern() - Method in class org.dromara.hutool.http.useragent.UserAgentInfo
-
获取匹配模式
- getPlatform() - Method in class org.dromara.hutool.http.useragent.UserAgent
-
获取平台类型
- getPort() - Method in class org.dromara.hutool.http.server.ServerConfig
-
获取服务器端口
- getPrincipal() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getProtocol() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getProtocols() - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
获取所有支持的协议
- getProxy() - Method in class org.dromara.hutool.http.client.ClientConfig
-
获取代理
- getProxy() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获得代理
- getProxySelector() - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
获取代理选择器
- getQuery() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpRequest
-
- getQuery() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
- getQuery() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatRequest
-
- getQuery() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowRequest
-
- getQuery() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获取请求参数,包括pathVariable和queryString
- getQuery() - Method in class org.dromara.hutool.http.server.servlet.JavaxServletRequest
-
- getQuery() - Method in class org.dromara.hutool.http.server.servlet.ServletRequest
-
- getRaw() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getRawEngine() - Method in interface org.dromara.hutool.http.client.engine.ClientEngine
-
获取原始引擎的钩子方法,用于自定义特殊属性,如插件等
- getRawEngine() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Engine
-
- getRawEngine() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Engine
-
- getRawEngine() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkClientEngine
-
- getRawEngine() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpEngine
-
- getRawEngine() - Method in class org.dromara.hutool.http.server.engine.jetty.JettyEngine
-
- getRawEngine() - Method in interface org.dromara.hutool.http.server.engine.ServerEngine
-
获取原始引擎的钩子方法,用于自定义特殊属性,如插件等
- getRawEngine() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpServerEngine
-
- getRawEngine() - Method in class org.dromara.hutool.http.server.engine.sun.SunHttpServerEngine
-
- getRawEngine() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatEngine
-
- getRawEngine() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowEngine
-
- getRawServer() - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
获得原始HttpServer对象
- getReadTimeout() - Method in class org.dromara.hutool.http.client.ClientConfig
-
获取读取超时,单位:毫秒
- getRedirectCount() - Method in class org.dromara.hutool.http.client.RequestContext
-
获取重定向计数器
- getRemoteAddress() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getRequest() - Method in class org.dromara.hutool.http.client.RequestContext
-
获取请求
- getRequest() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
获取请求
- getRequestBody() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getRequestHeaders() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getRequestMethod() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getRequestURI() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getResource() - Method in class org.dromara.hutool.http.client.body.ResourceBody
-
获取资源
- getResponse() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
获取响应
- getResponseBody() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getResponseCode() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getResponseHeaders() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- getResponseStr(boolean) - Method in class org.dromara.hutool.http.webservice.SoapResponse
-
获取SOAP消息字符串,默认为XML格式
- getRoot() - Method in class org.dromara.hutool.http.server.ServerConfig
-
获取服务器根目录
- getSender() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
-
获取Sender对象,用于发送数据
- getServerSessionContext() - Method in class org.dromara.hutool.http.server.engine.tomcat.JSSESSLContext
-
- getServerSocketFactory() - Method in class org.dromara.hutool.http.server.engine.tomcat.JSSESSLContext
-
- getSocketFactory() - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
- getSslContext() - Method in class org.dromara.hutool.http.server.ServerConfig
-
获取SSL上下文
- getSslContext() - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
- getSslInfo() - Method in class org.dromara.hutool.http.client.ClientConfig
-
获取SSLInfo
- getStatus() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
-
- getStatus() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
-
- getStatus() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
-
获取状态码
- getStatus() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
-
- getStatus() - Method in interface org.dromara.hutool.http.client.Response
-
获取状态码
- getStream() - Method in interface org.dromara.hutool.http.client.body.HttpBody
-
获取body资源流
- getStream() - Method in class org.dromara.hutool.http.client.body.ResourceBody
-
- getStream() - Method in class org.dromara.hutool.http.client.body.ResponseBody
-
- getString() - Method in class org.dromara.hutool.http.client.body.ResponseBody
-
获取响应字符串,自动识别判断编码
- getString(InputStream, Charset, boolean) - Static method in class org.dromara.hutool.http.html.HtmlUtil
-
从流中读取内容
首先尝试使用charset编码读取内容(如果为空默认UTF-8),如果isGetCharsetFromContent为true,则通过正则在正文中获取编码信息,转换为指定编码;
- getString(byte[], Charset, boolean) - Static method in class org.dromara.hutool.http.html.HtmlUtil
-
从流中读取内容
首先尝试使用charset编码读取内容(如果为空默认UTF-8),如果isGetCharsetFromContent为true,则通过正则在正文中获取编码信息,转换为指定编码;
- getSupportedCipherSuites() - Method in class org.dromara.hutool.http.ssl.CustomProtocolsSSLFactory
-
- getSupportedSSLParameters() - Method in class org.dromara.hutool.http.server.engine.tomcat.JSSESSLContext
-
- getTimeout() - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
获取全局默认的超时时长
- getTimeToLive() - Method in class org.dromara.hutool.http.client.ClientConfig
-
获取连接保持时间(连接池中),单位:毫秒
- getTmpUploadPath() - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
- getTrustManager() - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
- getURI() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
获得请求URI
- getURIs() - Method in interface org.dromara.hutool.http.client.cookie.CookieStoreSpi
-
获取所有Http URI
- getURIs() - Method in class org.dromara.hutool.http.client.cookie.InMemoryCookieStore
-
- getURIs() - Method in class org.dromara.hutool.http.client.cookie.ThreadLocalCookieStore
-
- getURIs() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieStore
-
- getUrl() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获取请求URL
- getUserAgent() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获得User-Agent,未识别返回null
- getUserAgentStr() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
获得User-Agent
- getValue() - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
获取Cookie值
- getValue() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- getValue() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- getValue() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- getValue() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- getValue() - Method in enum org.dromara.hutool.http.meta.ContentType
-
获取value值
- getValue() - Method in enum org.dromara.hutool.http.meta.HeaderName
-
获取值
- getValue() - Method in class org.dromara.hutool.http.meta.HttpHeaderUtil.ExtendedValue
-
获取原始值
- getValue() - Method in enum org.dromara.hutool.http.webservice.SoapProtocol
-
获取版本值信息
- getVersion(String) - Method in class org.dromara.hutool.http.useragent.Browser
-
获取浏览器版本
- getVersion(String) - Method in class org.dromara.hutool.http.useragent.BrowserEngine
-
获取引擎版本
- getVersion(String) - Method in class org.dromara.hutool.http.useragent.OS
-
获取浏览器版本
- getVersion() - Method in class org.dromara.hutool.http.useragent.UserAgent
-
获取浏览器版本
- getWriter() - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
获取响应数据流
- getWriter(HttpServletResponse) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获得PrintWriter
- getWriter(HttpServletResponse) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获得PrintWriter
- GlobalCompressStreamRegister - Enum in org.dromara.hutool.http
-
全局响应内容压缩解压器注册中心
通过注册指定Accept-Encoding的流,来包装响应内容流,从而支持特殊压缩算法
- GlobalHeaders - Enum in org.dromara.hutool.http
-
全局头部信息
所有Http请求将共用此全局头部信息
- GOOGLE_TV - Static variable in class org.dromara.hutool.http.useragent.Platform
-
android
- handle(String, Request, HttpServletRequest, HttpServletResponse) - Method in class org.dromara.hutool.http.server.engine.jetty.Jetty9Handler
-
- handle(ServerRequest, ServerResponse) - Method in interface org.dromara.hutool.http.server.handler.HttpHandler
-
处理请求
- handle(ServerRequest, ServerResponse) - Method in class org.dromara.hutool.http.server.handler.RootHandler
-
- handle(ServerRequest, ServerResponse) - Method in class org.dromara.hutool.http.server.handler.RouteHttpHandler
-
- handledBody() - Method in class org.dromara.hutool.http.client.Request
-
获取处理过的请求体,即如果是非REST的GET请求,始终返回null
- handledUrl() - Method in class org.dromara.hutool.http.client.Request
-
获取处理后的请求URL,即如果为非REST的GET请求,将form类型的body拼接为URL的一部分
- handler - Variable in class org.dromara.hutool.http.server.engine.AbstractServerEngine
-
- HARMONY - Static variable in class org.dromara.hutool.http.useragent.Platform
-
harmony
- hasFault() - Method in class org.dromara.hutool.http.webservice.SoapResponse
-
是否有错误信息
- hashCode() - Method in class org.dromara.hutool.http.useragent.UserAgentInfo
-
- header(String) - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
-
- header(String) - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
-
- header(String, String, boolean) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
设置请求头
当请求头存在时,覆盖之
- header(String) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获取Http请求头
- header(String) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
-
- header(String) - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
-
- header(String, String, boolean) - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
如果给定值为null,则删除这个头信息
- header(HeaderName) - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
获取指定的Header值,如果不存在返回null
- header(String) - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
获取指定的Header值,如果不存在返回null
- header(HeaderName, String, boolean) - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(HeaderName, String) - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
设置一个header
覆盖模式,则替换之前的值
- header(String, String) - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
添加请求头,默认覆盖原有头参数
- header(Map<String, ? extends Collection<String>>, boolean) - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
设置请求头
不覆盖原有请求头
- header(Map<String, String>) - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
设置请求头
覆盖原有请求头,请求参数为普通Map,简化使用
- header(Map<String, String>) - Method in class org.dromara.hutool.http.client.HttpDownloader
-
设置请求头
- header(String, String) - Method in class org.dromara.hutool.http.client.HttpDownloader
-
设置请求头,多个请求头则多次调用
- header(String, String, boolean) - Method in class org.dromara.hutool.http.client.Request
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
如果给定值为null,则删除这个头信息
- header(String) - Method in interface org.dromara.hutool.http.client.Response
-
根据name获取头信息
根据RFC2616规范,header的name不区分大小写
- header(HeaderName) - Method in interface org.dromara.hutool.http.client.Response
-
根据name获取头信息
- header(String) - Method in enum org.dromara.hutool.http.GlobalHeaders
-
根据name获取头信息
- header(HeaderName) - Method in enum org.dromara.hutool.http.GlobalHeaders
-
根据name获取头信息
- header(String, String, boolean) - Method in enum org.dromara.hutool.http.GlobalHeaders
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(HeaderName, String, boolean) - Method in enum org.dromara.hutool.http.GlobalHeaders
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- header(HeaderName, String) - Method in enum org.dromara.hutool.http.GlobalHeaders
-
设置一个header
覆盖模式,则替换之前的值
- header(String, String) - Method in enum org.dromara.hutool.http.GlobalHeaders
-
设置一个header
覆盖模式,则替换之前的值
- header(Map<String, List<String>>) - Method in enum org.dromara.hutool.http.GlobalHeaders
-
设置请求头
不覆盖原有请求头
- header(Map<String, ? extends Collection<String>>, String) - Static method in class org.dromara.hutool.http.HttpUtil
-
获取指定的Header值,如果不存在返回null
根据RFC2616规范,header的name不区分大小写,因此首先get值,不存在则遍历匹配不区分大小写的key。
- header(String, String, boolean) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
设置一个header
如果覆盖模式,则替换之前的值,否则加入到值列表中
- headerList(String) - Method in interface org.dromara.hutool.http.client.Response
-
根据name获取对应的头信息列表
- headerList(String) - Method in enum org.dromara.hutool.http.GlobalHeaders
-
根据name获取头信息列表
- headerList(Map<String, List<String>>, String) - Static method in class org.dromara.hutool.http.meta.HttpHeaderUtil
-
根据name获取对应的头信息列表
- HeaderName - Enum in org.dromara.hutool.http.meta
-
Http头名称枚举
- HeaderOperation<T extends HeaderOperation<T>> - Interface in org.dromara.hutool.http.client
-
HTTP请求头的存储和读取相关方法
- headers() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
-
- headers() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
-
- headers() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获取所有Http请求头
- headers() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
-
获取headers
- headers() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
-
- headers() - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
获取headers
- headers() - Method in class org.dromara.hutool.http.client.Request
-
- headers() - Method in interface org.dromara.hutool.http.client.Response
-
获取headers
- headers() - Method in enum org.dromara.hutool.http.GlobalHeaders
-
获取headers
- headers() - Method in class org.dromara.hutool.http.webservice.SoapClient
-
获取headers
- HtmlFilter - Class in org.dromara.hutool.http.html
-
HTML过滤器,用于去除XSS(Cross Site Scripting) 漏洞隐患。
- HtmlFilter() - Constructor for class org.dromara.hutool.http.html.HtmlFilter
-
Default constructor.
- HtmlFilter(boolean) - Constructor for class org.dromara.hutool.http.html.HtmlFilter
-
Set debug flag to true.
- HtmlFilter(Map<String, Object>) - Constructor for class org.dromara.hutool.http.html.HtmlFilter
-
Map-parameter configurable constructor.
- htmlSpecialChars(String) - Static method in class org.dromara.hutool.http.html.HtmlFilter
-
HTML特殊字符替换
- HtmlUtil - Class in org.dromara.hutool.http.html
-
HTML工具类
比如去掉指定标签(例如广告栏等)、去除JS、去掉样式等等,这些操作都可以使用此工具类完成。
- HtmlUtil() - Constructor for class org.dromara.hutool.http.html.HtmlUtil
-
- HTTP_ACCEPTED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 202: Accepted.
- HTTP_ALREADY_REPORTED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 208: Already Reported.
- HTTP_BAD_GATEWAY - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 502: Bad Gateway.
- HTTP_BAD_METHOD - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 405: Method Not Allowed.
- HTTP_BAD_REQUEST - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 400: Bad Request.
- HTTP_BANDWIDTH_LIMIT_EXCEEDED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 509: Bandwidth Limit Exceeded.
- HTTP_CHECKPOINT - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 103: Checkpoint.
- HTTP_CLIENT_TIMEOUT - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 408: Request Time-Out.
- HTTP_CONFLICT - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 409: Conflict.
- HTTP_CONTINUE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 100: Continue.
- HTTP_CREATED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 201: Created.
- HTTP_ENTITY_TOO_LARGE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 413: Request Entity Too Large.
- HTTP_EXPECTATION_FAILED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 417: Expectation Failed.
- HTTP_FAILED_DEPENDENCY - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 424: Failed Dependency.
- HTTP_FORBIDDEN - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 403: Forbidden.
- HTTP_GATEWAY_TIMEOUT - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 504: Gateway Timeout.
- HTTP_GONE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 410: Gone.
- HTTP_I_AM_A_TEAPOT - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 418: I'm a teapot.
- HTTP_IM_USED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 226: IM Used.
- HTTP_INSUFFICIENT_STORAGE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 507: Insufficient Storage.
- HTTP_INTERNAL_ERROR - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 500: Internal Server Error.
- HTTP_LENGTH_REQUIRED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 411: Length Required.
- HTTP_LOCKED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 423: Locked.
- HTTP_LOOP_DETECTED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 508: Loop Detected.
- HTTP_MOVED_PERM - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 301: Moved Permanently.
- HTTP_MOVED_TEMP - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 302: Temporary Redirect.
- HTTP_MULT_CHOICE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 300: Multiple Choices.
- HTTP_MULTI_STATUS - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 207: Multi-Status.
- HTTP_NETWORK_AUTHENTICATION_REQUIRED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 511: Network Authentication Required.
- HTTP_NO_CONTENT - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 204: No Content.
- HTTP_NOT_ACCEPTABLE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 406: Not Acceptable.
- HTTP_NOT_AUTHORITATIVE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 203: Non-Authoritative Information.
- HTTP_NOT_EXTENDED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 510: Not Extended.
- HTTP_NOT_FOUND - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 404: Not Found.
- HTTP_NOT_IMPLEMENTED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 501: Not Implemented.
- HTTP_NOT_MODIFIED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 304: Not Modified.
- HTTP_OK - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 200: OK.
- HTTP_PARTIAL - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 206: Partial Content.
- HTTP_PAYMENT_REQUIRED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 402: Payment Required.
- HTTP_PERMANENT_REDIRECT - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP 1.1 Status-Code 308: Permanent Redirect 永久重定向
见:RFC-7231
- HTTP_PRECON_FAILED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 412: Precondition Failed.
- HTTP_PRECONDITION_REQUIRED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 428: Precondition Required.
- HTTP_PROCESSING - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 102: Processing.
- HTTP_PROXY_AUTH - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 407: Proxy Authentication Required.
- HTTP_REQ_TOO_LONG - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 414: Request-URI Too Large.
- HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 431: Request Header Fields Too Large.
- HTTP_REQUESTED_RANGE_NOT_SATISFIABLE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 416: Requested Range Not Satisfiable.
- HTTP_RESET - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 205: Reset Content.
- HTTP_SEE_OTHER - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 303: See Other.
- HTTP_SWITCHING_PROTOCOLS - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 101: Switching Protocols.
- HTTP_TEMP_REDIRECT - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP 1.1 Status-Code 307: Temporary Redirect.
- HTTP_TOO_EARLY - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 425: Too Early.
- HTTP_TOO_MANY_REQUESTS - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 429: Too Many Requests.
- HTTP_UNAUTHORIZED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 401: Unauthorized.
- HTTP_UNAVAILABLE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 503: Service Unavailable.
- HTTP_UNAVAILABLE_FOR_LEGAL_REASONS - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 451: Unavailable For Legal Reasons.
- HTTP_UNPROCESSABLE_ENTITY - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 422: Unprocessable Entity.
- HTTP_UNSUPPORTED_TYPE - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 415: Unsupported Media Type.
- HTTP_UPGRADE_REQUIRED - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 426: Upgrade Required.
- HTTP_USE_PROXY - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 305: Use Proxy.
- HTTP_VARIANT_ALSO_NEGOTIATES - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 506: Variant Also Negotiates.
- HTTP_VERSION - Static variable in interface org.dromara.hutool.http.meta.HttpStatus
-
HTTP Status-Code 505: HTTP Version Not Supported.
- HttpAuthUtil - Class in org.dromara.hutool.http.auth
-
HTTP验证工具类
- HttpAuthUtil() - Constructor for class org.dromara.hutool.http.auth.HttpAuthUtil
-
- HttpBody - Interface in org.dromara.hutool.http.client.body
-
定义请求体接口
- HttpClient4BodyEntity - Class in org.dromara.hutool.http.client.engine.httpclient4
-
- HttpClient4BodyEntity(String, String, boolean, HttpBody) - Constructor for class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4BodyEntity
-
构造
- HttpClient4Cookie - Class in org.dromara.hutool.http.client.engine.httpclient4
-
HttpClient4 Cookie实现
- HttpClient4Cookie(Cookie) - Constructor for class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
构造
- HttpClient4CookieStore - Class in org.dromara.hutool.http.client.engine.httpclient4
-
Apache HttpClient4的Cookie存储器实现
- HttpClient4CookieStore(CookieStoreSpi) - Constructor for class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4CookieStore
-
构造
- HttpClient4Engine - Class in org.dromara.hutool.http.client.engine.httpclient4
-
Apache HttpClient5的HTTP请求引擎
- HttpClient4Engine() - Constructor for class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Engine
-
构造
- HttpClient4Response - Class in org.dromara.hutool.http.client.engine.httpclient4
-
HttpClient响应包装
通过包装CloseableHttpResponse,实现获取响应状态码、响应头、响应体等内容
- HttpClient4Response(HttpResponse, Request) - Constructor for class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
-
构造
通过传入一个请求时的编码,当无法获取响应内容的编码时,默认使用响应时的编码
- HttpClient5BodyEntity - Class in org.dromara.hutool.http.client.engine.httpclient5
-
- HttpClient5BodyEntity(String, String, boolean, HttpBody) - Constructor for class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5BodyEntity
-
构造
- HttpClient5Cookie - Class in org.dromara.hutool.http.client.engine.httpclient5
-
HttpClient5 Cookie实现
- HttpClient5Cookie(Cookie) - Constructor for class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
构造
- HttpClient5CookieStore - Class in org.dromara.hutool.http.client.engine.httpclient5
-
HttpClient5 Cookie存储器实现
- HttpClient5CookieStore(CookieStoreSpi) - Constructor for class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5CookieStore
-
构造
- HttpClient5Engine - Class in org.dromara.hutool.http.client.engine.httpclient5
-
Apache HttpClient5的HTTP请求引擎
- HttpClient5Engine() - Constructor for class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Engine
-
构造
- HttpClient5Response - Class in org.dromara.hutool.http.client.engine.httpclient5
-
HttpClient响应包装
通过包装CloseableHttpResponse,实现获取响应状态码、响应头、响应体等内容
- HttpClient5Response(ClassicHttpResponse, Request) - Constructor for class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
-
构造
通过传入一个请求时的编码,当无法获取响应内容的编码时,默认使用响应时的编码
- httpConnection - Variable in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
-
持有连接对象
- HttpDownloader - Class in org.dromara.hutool.http.client
-
HTTP下载器,两种使用方式:
1.
- HttpDownloader(String) - Constructor for class org.dromara.hutool.http.client.HttpDownloader
-
构造
- HttpException - Exception in org.dromara.hutool.http
-
HTTP异常
- HttpException(Throwable) - Constructor for exception org.dromara.hutool.http.HttpException
-
构造
- HttpException(String) - Constructor for exception org.dromara.hutool.http.HttpException
-
构造
- HttpException(String, Object...) - Constructor for exception org.dromara.hutool.http.HttpException
-
构造
- HttpException(String, Throwable) - Constructor for exception org.dromara.hutool.http.HttpException
-
构造
- HttpException(String, Throwable, boolean, boolean) - Constructor for exception org.dromara.hutool.http.HttpException
-
构造
- HttpException(Throwable, String, Object...) - Constructor for exception org.dromara.hutool.http.HttpException
-
构造
- httpExchange - Variable in class org.dromara.hutool.http.server.engine.sun.SunServerExchangeBase
-
- HttpExchangeWrapper - Class in org.dromara.hutool.http.server.engine.sun
-
HttpExchange包装类,提供增强方法和缓存
- HttpExchangeWrapper(HttpExchange) - Constructor for class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
构造
- HttpFilter - Interface in org.dromara.hutool.http.server.engine.sun.filter
-
过滤器接口,用于简化Filter 使用
- HttpGlobalConfig - Class in org.dromara.hutool.http
-
HTTP 全局参数配置
- HttpGlobalConfig() - Constructor for class org.dromara.hutool.http.HttpGlobalConfig
-
- HttpHandler - Interface in org.dromara.hutool.http.server.handler
-
HTTP请求处理器
抽象请求处理,对于不同的HTTP服务器,将这个处理器封装成对应的处理器,例如Jetty的JettyHandler,Undertow的UndertowHandler等
- HttpHeaderUtil - Class in org.dromara.hutool.http.meta
-
HTTP头相关方法
相关规范见:https://www.rfc-editor.org/rfc/rfc5987
- HttpHeaderUtil() - Constructor for class org.dromara.hutool.http.meta.HttpHeaderUtil
-
- HttpHeaderUtil.ExtendedValue - Class in org.dromara.hutool.http.meta
-
根据rfc5987的扩展值,格式为:
编码'语言'值
- HttpStatus - Interface in org.dromara.hutool.http.meta
-
HTTP状态码
- HttpUriRequestBuilder - Class in org.dromara.hutool.http.client.engine.httpclient4
-
HttpClient4请求构建器
- HttpUriRequestBuilder() - Constructor for class org.dromara.hutool.http.client.engine.httpclient4.HttpUriRequestBuilder
-
- HttpUrlConnectionUtil - Class in org.dromara.hutool.http.client.engine.jdk
-
- HttpUrlConnectionUtil() - Constructor for class org.dromara.hutool.http.client.engine.jdk.HttpUrlConnectionUtil
-
- HttpUrlUtil - Class in org.dromara.hutool.http
-
- HttpUrlUtil() - Constructor for class org.dromara.hutool.http.HttpUrlUtil
-
- HttpUtil - Class in org.dromara.hutool.http
-
Http请求工具类
- HttpUtil() - Constructor for class org.dromara.hutool.http.HttpUtil
-
- incrementRedirectCount() - Method in class org.dromara.hutool.http.client.RequestContext
-
重定向计数器+1
- init(ClientConfig) - Method in class org.dromara.hutool.http.client.engine.AbstractClientEngine
-
- init(ClientConfig) - Method in interface org.dromara.hutool.http.client.engine.ClientEngine
-
- init(ClientConfig) - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpEngine
-
- init(ServerConfig) - Method in class org.dromara.hutool.http.server.engine.AbstractServerEngine
-
- init(ServerConfig) - Method in interface org.dromara.hutool.http.server.engine.ServerEngine
-
初始化HTTP服务器
- init(KeyManager[], TrustManager[], SecureRandom) - Method in class org.dromara.hutool.http.server.engine.tomcat.JSSESSLContext
-
- init(SoapProtocol) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
初始化
- initEngine() - Method in class org.dromara.hutool.http.client.engine.AbstractClientEngine
-
初始化引擎,实现逻辑中如果初始化完成,不再重新初始化
- initEngine() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Engine
-
- initEngine() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Engine
-
- initEngine() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkClientEngine
-
- initEngine() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpEngine
-
- initEngine() - Method in class org.dromara.hutool.http.server.engine.AbstractServerEngine
-
初始化引擎,实现逻辑中如果初始化完成,不再重新初始化
- initEngine() - Method in class org.dromara.hutool.http.server.engine.jetty.JettyEngine
-
- initEngine() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpServerEngine
-
- initEngine() - Method in class org.dromara.hutool.http.server.engine.sun.SunHttpServerEngine
-
- initEngine() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatEngine
-
- initEngine() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowEngine
-
- InMemoryCookieStore - Class in org.dromara.hutool.http.client.cookie
-
基于内存的Cookie存储实现,线程安全
- InMemoryCookieStore() - Constructor for class org.dromara.hutool.http.client.cookie.InMemoryCookieStore
-
构造
- INSTANCE - Static variable in class org.dromara.hutool.http.client.engine.httpclient4.HttpUriRequestBuilder
-
单例
- INSTANCE - Static variable in class org.dromara.hutool.http.client.engine.httpclient5.ClassicHttpRequestBuilder
-
单例
- INSTANCE - Static variable in class org.dromara.hutool.http.client.engine.okhttp.OkHttpRequestBuilder
-
单例
- IPAD - Static variable in class org.dromara.hutool.http.useragent.Platform
-
ipad
- IPHONE - Static variable in class org.dromara.hutool.http.useragent.Platform
-
Iphone
- IPOD - Static variable in class org.dromara.hutool.http.useragent.Platform
-
ipod
- isAllowFileExts - Variable in class org.dromara.hutool.http.multipart.UploadSetting
-
扩展名是允许列表还是禁止列表
- isAllowFileExts() - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
是否允许文件扩展名
- isAlwaysMakeTags() - Method in class org.dromara.hutool.http.html.HtmlFilter
-
flag determining whether to try to make tags when presented with "unbalanced" angle brackets (e.g.
- isAndroid() - Method in class org.dromara.hutool.http.useragent.Platform
-
是否为Android平台,包括Android和Google TV
- isBoundary(byte) - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
-
- isChunked() - Method in interface org.dromara.hutool.http.client.HeaderOperation
-
是否为Transfer-Encoding:Chunked的内容
- isChunked() - Method in interface org.dromara.hutool.http.client.Response
-
是否为Transfer-Encoding:Chunked的内容
- isDefault(String) - Static method in enum org.dromara.hutool.http.meta.ContentType
-
是否为默认Content-Type,默认包括null和application/x-www-form-urlencoded
- isDisableCache() - Method in class org.dromara.hutool.http.client.ClientConfig
-
是否禁用缓存
- isExpired(Instant) - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
Cookie是否过期
- isExpired() - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
Cookie是否过期
- isExpired(Instant) - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- isExpired(Instant) - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- isExpired() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- isExpired(Instant) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- isExpired(Instant) - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- isFile() - Method in class org.dromara.hutool.http.multipart.UploadFileHeader
-
Returns true if uploaded data are correctly marked as a file.
- isFormUrlEncode(String) - Static method in enum org.dromara.hutool.http.meta.ContentType
-
是否为application/x-www-form-urlencoded
- isGetCharsetFromContent() - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
是否从响应正文中的meta标签获取编码信息
- isGetMethod() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
是否为GET请求
- isGetMethod(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
是否为GET请求
- isGetMethod(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
是否为GET请求
- isHarmony() - Method in class org.dromara.hutool.http.useragent.Platform
-
是否为Harmony平台
- isHostOnly() - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
限制 Cookie 主机作用域,一般包含子域名
Cookie 作用域,默认为空,表示所有域名下生效
- isHostOnly() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- isHostOnly() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- isHostOnly() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- isHostOnly() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- isHttp(String) - Static method in class org.dromara.hutool.http.HttpUtil
-
检测是否http
- isHttpOnly() - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
限制 Cookie 的作用域
标记为 HttpOnly 的 Cookie 只能在 HTTP 协议中访问,不能通过脚本语言(如 JavaScript)访问
- isHttpOnly() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- isHttpOnly() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- isHttpOnly() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- isHttpOnly() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- isHttps(String) - Static method in class org.dromara.hutool.http.HttpUtil
-
检测是否https
- isIE(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
客户浏览器是否为IE
- isIE(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
客户浏览器是否为IE
- isIgnoreBody() - Method in enum org.dromara.hutool.http.meta.Method
-
是否忽略读取响应body部分
HEAD、CONNECT、TRACE方法将不读取响应体
- isIgnoreEOFError() - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
获取是否忽略响应读取时可能的EOF异常。
- isInMemory() - Method in class org.dromara.hutool.http.multipart.UploadFile
-
- isIos() - Method in class org.dromara.hutool.http.useragent.Platform
-
是否为IOS平台,包括IPhone、IPod、IPad
- isIPad() - Method in class org.dromara.hutool.http.useragent.Platform
-
是否为Iphone或者iPod设备
- isIPhoneOrIPod() - Method in class org.dromara.hutool.http.useragent.Platform
-
是否为Iphone或者iPod设备
- isLoaded() - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
是否已被解析
- isMacOS() - Method in class org.dromara.hutool.http.useragent.OS
-
是否为MacOS
- isMatch(String) - Method in class org.dromara.hutool.http.useragent.UserAgentInfo
-
指定内容中是否包含匹配此信息的内容
- isMobile() - Method in class org.dromara.hutool.http.useragent.Browser
-
是否移动浏览器
- isMobile() - Method in class org.dromara.hutool.http.useragent.Platform
-
是否为移动平台
- isMobile() - Method in class org.dromara.hutool.http.useragent.UserAgent
-
是否为移动平台
- isMultipart() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
是否为Multipart类型表单,此类型表单用于文件上传
- isMultipart(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
是否为Multipart类型表单,此类型表单用于文件上传
- isMultipart(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
是否为Multipart类型表单,此类型表单用于文件上传
- isOk() - Method in interface org.dromara.hutool.http.client.Response
-
请求是否成功,判断依据为:状态码范围在200~299内。
- isPersistent() - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
是否持久化,即Cookie是否在Session关闭前一直有效
- isPersistent() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- isPersistent() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- isPersistent() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- isPersistent() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- isPostMethod() - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
-
是否为POST请求
- isPostMethod(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
是否为POST请求
- isPostMethod(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
是否为POST请求
- isRedirected(int) - Static method in interface org.dromara.hutool.http.meta.HttpStatus
-
是否为重定向状态码
- isRepeatable() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4BodyEntity
-
- isSecure() - Method in interface org.dromara.hutool.http.client.cookie.CookieSpi
-
限制访问 Cookie
标记为 Secure 的 Cookie 只应通过被 HTTPS 协议加密过的请求发送给服务端
- isSecure() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
-
- isSecure() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
-
- isSecure() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookie
-
- isSecure() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
-
- isStreaming() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4BodyEntity
-
- isStreaming() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5BodyEntity
-
- isStripComments() - Method in class org.dromara.hutool.http.html.HtmlFilter
-
flag determining whether comments are allowed in input String.
- isTrustAnyHost() - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
是否信任所有Host
- isUnknown() - Method in class org.dromara.hutool.http.useragent.UserAgentInfo
-
是否为Unknown
- isUploaded() - Method in class org.dromara.hutool.http.multipart.UploadFile
-
- isUseCookieManager() - Method in class org.dromara.hutool.http.client.ClientConfig
-
是否使用引擎默认的Cookie管理器,默认为true
默认情况下每个客户端维护一个自己的Cookie管理器,这个管理器用于在多次请求中记录并自动附带Cookie信息
如请求登录后,服务器返回Set-Cookie信息,Cookie管理器记录之,后续请求会自动带上这个Cookie信息,从而实现会话保持。
- saveFromResponse(JdkHttpConnection) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
-
存储响应的Cookie信息到本地
- saveFromResponse(JdkHttpConnection, Map<String, List<String>>) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
-
存储响应的Cookie信息到本地
通过读取
- saveFromResponse(HttpUrl, List<Cookie>) - Method in class org.dromara.hutool.http.client.engine.okhttp.CookieJarImpl
-
- selectFirst(URI) - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
获取第一个代理
如果代理选择器为空,返回null
- send(Request) - Method in interface org.dromara.hutool.http.client.engine.ClientEngine
-
发送HTTP请求
- send(Request) - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Engine
-
- send(Request) - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Engine
-
- send(Request) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkClientEngine
-
- send(Request) - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpEngine
-
- send() - Method in class org.dromara.hutool.http.client.Request
-
发送请求
- send(ClientEngine) - Method in class org.dromara.hutool.http.client.Request
-
发送请求
- send(Request) - Static method in class org.dromara.hutool.http.HttpUtil
-
使用默认HTTP引擎,发送HTTP请求
- send(int, long) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
发送HTTP状态码
- send() - Method in class org.dromara.hutool.http.webservice.SoapClient
-
发送请求,获取响应对象
- send404(String) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
发送404错误页
- sendError(int, String) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
发送错误页
- sendForResponse() - Method in class org.dromara.hutool.http.webservice.SoapClient
-
发送请求,获取异步响应
- sendOk() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
发送成功状态码
- sendOk(int) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
发送成功状态码
- sendResponseHeaders(int, long) - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- ServerConfig - Class in org.dromara.hutool.http.server
-
服务器配置
- ServerConfig() - Constructor for class org.dromara.hutool.http.server.ServerConfig
-
- ServerEngine - Interface in org.dromara.hutool.http.server.engine
-
HTTP服务器引擎,执行流程为:
init -> setHandler -> start
- ServerEngineFactory - Class in org.dromara.hutool.http.server.engine
-
Http服务器引擎工厂类
- ServerEngineFactory() - Constructor for class org.dromara.hutool.http.server.engine.ServerEngineFactory
-
- ServerRequest - Interface in org.dromara.hutool.http.server.handler
-
服务端请求对象,用于获取请求参数等
- ServerResponse - Interface in org.dromara.hutool.http.server.handler
-
服务端响应接口,用于写出数据
- ServletRequest - Class in org.dromara.hutool.http.server.servlet
-
Jakarta Servlet请求对象包装
- ServletRequest(HttpServletRequest) - Constructor for class org.dromara.hutool.http.server.servlet.ServletRequest
-
构造
- ServletResponse - Class in org.dromara.hutool.http.server.servlet
-
Jakarta Servlet响应对象包装
- ServletResponse(HttpServletResponse) - Constructor for class org.dromara.hutool.http.server.servlet.ServletResponse
-
构造
- ServletUtil - Class in org.dromara.hutool.http.server.servlet
-
Servlet相关工具类封装
- ServletUtil() - Constructor for class org.dromara.hutool.http.server.servlet.ServletUtil
-
- setAllowFileExts(boolean) - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
设定是否允许扩展名
- setAttr(String, Object) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
设置属性
- setAttribute(String, Object) - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- setAuth(String, char[]) - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
设置代理验证信息
- setAuth(PasswordAuthentication) - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
设置代理验证信息
- setAuthHost(String) - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
设置代理验证主机
- setAuthPort(int) - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
设置代理验证端口
- setBoundary(String) - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
设置默认的Multipart边界
- setBrowser(Browser) - Method in class org.dromara.hutool.http.useragent.UserAgent
-
设置浏览器类型
- setCharset(Charset) - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpResponse
-
- setCharset(Charset) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
- setCharset(Charset) - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatResponse
-
- setCharset(Charset) - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
-
- setCharset(Charset) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
设置编码,默认为UTF-8
- setCharset(Charset) - Method in class org.dromara.hutool.http.server.servlet.JavaxServletResponse
-
- setCharset(Charset) - Method in class org.dromara.hutool.http.server.servlet.ServletResponse
-
- setChunkedStreamingMode(int) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
采用流方式上传数据,无需本地缓存数据。
- setCloseEngine(boolean) - Method in class org.dromara.hutool.http.client.HttpDownloader
-
设置是否关闭引擎,默认为true,即自动关闭引擎
- setConfig(ClientConfig) - Method in class org.dromara.hutool.http.client.HttpDownloader
-
设置配置
- setConnectionAndReadTimeout(int) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
设置连接和读取的超时时间
- setConnectionTimeout(int) - Method in class org.dromara.hutool.http.client.ClientConfig
-
设置连接超时,单位:毫秒
- setConnectTimeout(int) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
设置连接超时
- setContentLength(long) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
设置Content-Length头,-1表示移除头
- setContentType(String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
- setCookieManager(CookieManager) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
-
- setCoreThreads(int) - Method in class org.dromara.hutool.http.server.ServerConfig
-
设置核心线程数
- setDisableCache(boolean) - Method in class org.dromara.hutool.http.client.ClientConfig
-
设置是否禁用缓存
- setDisableCache(boolean) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
是否禁用缓存
- setEncodeUrl(boolean) - Method in class org.dromara.hutool.http.client.Request
-
设置是否编码URL
- setEngine(ClientEngine) - Method in class org.dromara.hutool.http.client.HttpDownloader
-
设置引擎,用于自定义引擎
- setEngine(BrowserEngine) - Method in class org.dromara.hutool.http.useragent.UserAgent
-
设置引擎类型
- setEngineVersion(String) - Method in class org.dromara.hutool.http.useragent.UserAgent
-
设置引擎版本
- setExecutor(Executor) - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
设置自定义线程池
- setExecutor(Executor) - Method in class org.dromara.hutool.http.server.engine.sun.SunHttpServerEngine
-
设置自定义线程池
- setFileExts(String[]) - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
设定文件扩展名限定里列表
禁止列表还是允许列表取决于isAllowFileExts
- setFixedLengthStreamingMode(long) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
设置固定长度的流模式,会设置HTTP请求头中的Content-Length字段,告知服务器整个请求体的精确字节大小。
- setGetCharsetFromContent(boolean) - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
设置是否从响应正文中的meta标签获取编码信息
- setHandler(HttpHandler) - Method in class org.dromara.hutool.http.server.engine.AbstractServerEngine
-
- setHandler(HttpHandler) - Method in interface org.dromara.hutool.http.server.engine.ServerEngine
-
设置请求处理器
- setHeader(String, String) - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpResponse
-
- setHeader(String, String) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
- setHeader(String, List<String>) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
设置响应头,如果已经存在,则覆盖
- setHeader(String, String) - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatResponse
-
- setHeader(String, String) - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
-
- setHeader(String, List<String>) - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
-
- setHeader(String, String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
设置响应头,如果已经存在,则覆盖
- setHeader(HeaderName, String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
设置响应头,如果已经存在,则覆盖
- setHeader(String, List<String>) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
设置响应头,如果已经存在,则覆盖
- setHeader(String, String) - Method in class org.dromara.hutool.http.server.servlet.JavaxServletResponse
-
- setHeader(HttpServletResponse, String, Object) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
设置响应的Header
- setHeader(String, String) - Method in class org.dromara.hutool.http.server.servlet.ServletResponse
-
- setHeader(HttpServletResponse, String, Object) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
设置响应的Header
- setHeaders(Map<String, List<String>>) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
设置所有响应头,如果已经存在,则覆盖
- setHost(String) - Method in class org.dromara.hutool.http.server.ServerConfig
-
设置服务器地址,默认127.0.0.1
- setHostnameVerificationPolicy(HostnameVerificationPolicy) - Method in class org.dromara.hutool.http.client.engine.httpclient5.TlsSocketStrategyBuilder
-
设置主机名验证策略
- setHostnameVerifier(HostnameVerifier) - Method in class org.dromara.hutool.http.client.engine.httpclient5.TlsSocketStrategyBuilder
-
设置主机名验证器
- setHostnameVerifier(HostnameVerifier) - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
- setHttpProxy(String, int) - Method in class org.dromara.hutool.http.client.ClientConfig
-
设置Http代理
- setIdleTimeout(long) - Method in class org.dromara.hutool.http.server.ServerConfig
-
设置空闲超时时间
- setIgnoreEOFError(boolean) - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
设置是否忽略响应读取时可能的EOF异常。
- setInstanceFollowRedirects(boolean) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
设置自动HTTP 30X跳转
- setJettyHandler(Handler) - Method in class org.dromara.hutool.http.server.engine.jetty.JettyEngine
-
设置Jetty处理器,用于处理请求
- setKeystore(KeyStore, char[]) - Method in class org.dromara.hutool.http.server.ServerConfig
-
- setMaxBodySize(long) - Method in class org.dromara.hutool.http.server.ServerConfig
-
设置最大消息体大小
- setMaxFileSize(long) - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
设定最大文件大小,-1表示无限制
- setMaxHeaderSize(int) - Method in class org.dromara.hutool.http.server.ServerConfig
-
设置最大请求(响应)头大小
- setMaxIdle(int) - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpClientConfig
-
设置最大空闲连接数
- setMaxPerRoute(int) - Method in class org.dromara.hutool.http.client.ApacheHttpClientConfig
-
设置每个路由的最大连接数
- setMaxRedirects(int) - Method in class org.dromara.hutool.http.client.Request
-
设置最大重定向次数
如果次数小于1则表示不重定向,大于等于1表示打开重定向
- setMaxRedirects(int) - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
设置默认全局默认的最大重定向次数,如设置0表示不重定向
如果设置为1,表示重定向一次,即请求两次
- setMaxThreads(int) - Method in class org.dromara.hutool.http.server.ServerConfig
-
设置最大线程数
- setMaxTotal(int) - Method in class org.dromara.hutool.http.client.ApacheHttpClientConfig
-
设置最大连接总数
- setMemoryThreshold(int) - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
设定文件保存到内存的边界
如果文件大小小于这个边界,将保存于内存中,否则保存至临时目录中
- setMethod(Method) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
设置请求方法
- setMethod(Name, Map<String, Object>, boolean) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
设置请求方法
- setMethod(QName, Map<String, Object>, boolean) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
设置请求方法
- setMethod(String) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
设置请求方法
方法名自动识别前缀,前缀和方法名使用“:”分隔
当识别到前缀后,自动添加xmlns属性,关联到默认的namespaceURI
- setMethod(String, String) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
设置请求方法
方法名自动识别前缀,前缀和方法名使用“:”分隔
当识别到前缀后,自动添加xmlns属性,关联到传入的namespaceURI
- setMethod(QName) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
设置请求方法
- setMobile(boolean) - Method in class org.dromara.hutool.http.useragent.UserAgent
-
设置是否为移动平台
- setOs(OS) - Method in class org.dromara.hutool.http.useragent.UserAgent
-
设置系统类型
- setOsVersion(String) - Method in class org.dromara.hutool.http.useragent.UserAgent
-
设置系统版本
- setParam(String, Object) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
设置方法参数,使用方法的前缀
- setParam(String, Object, boolean) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
设置方法参数
- setParams(Map<String, Object>) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
批量设置参数,使用方法的前缀
- setParams(Map<String, Object>, boolean) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
批量设置参数
- setPlatform(Platform) - Method in class org.dromara.hutool.http.useragent.UserAgent
-
设置平台类型
- setPort(int) - Method in class org.dromara.hutool.http.server.ServerConfig
-
设置服务器端口
- setProtocols(String...) - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
设置协议列表
- setProxy(ProxyInfo) - Method in class org.dromara.hutool.http.client.ClientConfig
-
设置代理
- setProxySelector(ProxySelector) - Method in class org.dromara.hutool.http.proxy.ProxyInfo
-
设置代理选择器
- setReadTimeout(int) - Method in class org.dromara.hutool.http.client.ClientConfig
-
设置读取超时,单位:毫秒
- setReadTimeout(int) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
设置读取超时
- setRequest(Request) - Method in class org.dromara.hutool.http.client.RequestContext
-
设置请求,在重新请求或重定向时,更新请求信息
- setRest(boolean) - Method in class org.dromara.hutool.http.client.Request
-
设置是否rest模式
rest模式下get请求不会把参数附加到URL之后,而是作为body发送
- setRoot(String) - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
设置根目录,默认的页面从root目录中读取解析返回
- setRoot(File) - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
设置根目录,默认的页面从root目录中读取解析返回
- setRoot(String) - Method in class org.dromara.hutool.http.server.ServerConfig
-
设置服务器根目录
- setSslBufferMode(SSLBufferMode) - Method in class org.dromara.hutool.http.client.engine.httpclient5.TlsSocketStrategyBuilder
-
设置SSL缓冲模式
- setSslContext(SSLContext) - Method in class org.dromara.hutool.http.client.engine.httpclient5.TlsSocketStrategyBuilder
-
设置SSL上下文
- setSslContext(SSLContext) - Method in class org.dromara.hutool.http.server.ServerConfig
-
设置SSL上下文
- setSslContext(SSLContext) - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
- setSSLInfo(SSLInfo) - Method in class org.dromara.hutool.http.client.ClientConfig
-
- setSSLInfo(SSLInfo) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
设置https中SSL相关请求参数
有些时候htts请求会出现com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl的实现,此为sun内部api,按照普通http请求处理
- setStatus(int) - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpResponse
-
- setStatus(int) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
- setStatus(int) - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatResponse
-
- setStatus(int) - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
-
- setStatus(int) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
-
设置状态码
- setStatus(int) - Method in class org.dromara.hutool.http.server.servlet.JavaxServletResponse
-
- setStatus(int) - Method in class org.dromara.hutool.http.server.servlet.ServletResponse
-
- setStreamProgress(StreamProgress) - Method in class org.dromara.hutool.http.client.HttpDownloader
-
设置进度条
- setStreams(InputStream, OutputStream) - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
-
- setSupportedCipherSuites(String[]) - Method in class org.dromara.hutool.http.client.engine.httpclient5.TlsSocketStrategyBuilder
-
设置支持的加密套件
- setSupportedProtocols(String[]) - Method in class org.dromara.hutool.http.client.engine.httpclient5.TlsSocketStrategyBuilder
-
设置支持的协议版本
- setTimeout(int) - Method in class org.dromara.hutool.http.client.ClientConfig
-
设置超时,单位:毫秒
超时包括:
1.
- setTimeout(int) - Method in class org.dromara.hutool.http.client.HttpDownloader
-
设置超时
- setTimeout(int) - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
设置默认的连接和读取超时时长
-1: 含义,永不超时。
- setTimeToLive(long) - Method in class org.dromara.hutool.http.client.ClientConfig
-
设置连接保持时间(连接池中),单位:毫秒
- setTmpUploadPath(String) - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
设定上传文件的临时目录,null表示使用系统临时目录
- setTrustAnyHost(boolean) - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
是否信任所有Host
见:https://github.com/dromara/hutool/issues/2042
- setTrustManager(X509TrustManager) - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
- setUrl(String) - Method in class org.dromara.hutool.http.webservice.SoapClient
-
设置Webservice请求地址
- setUseCookieManager(boolean) - Method in class org.dromara.hutool.http.client.ClientConfig
-
是否使用引擎默认的Cookie管理器,默认为true
默认情况下每个客户端维护一个自己的Cookie管理器,这个管理器用于在多次请求中记录并自动附带Cookie信息
如请求登录后,服务器返回Set-Cookie信息,Cookie管理器记录之,后续请求会自动带上这个Cookie信息,从而实现会话保持。
- setVersion(String) - Method in class org.dromara.hutool.http.useragent.UserAgent
-
设置浏览器版本
- SimpleFilter - Class in org.dromara.hutool.http.server.engine.sun.filter
-
匿名简单过滤器,跳过了描述
- SimpleFilter() - Constructor for class org.dromara.hutool.http.server.engine.sun.filter.SimpleFilter
-
- SimpleServer - Class in org.dromara.hutool.http.server.engine.sun
-
简易Http服务器,基于HttpServer
- SimpleServer(int) - Constructor for class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
构造
- SimpleServer(String, int) - Constructor for class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
构造
- SimpleServer(InetSocketAddress) - Constructor for class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
构造
- SimpleServer(InetSocketAddress, SSLContext) - Constructor for class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
构造
- size() - Method in class org.dromara.hutool.http.multipart.UploadFile
-
- skip(long) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpInputStream
-
- skipBytes(long) - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
-
跳过指定位数的 bytes.
- skipToBoundary() - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
-
跳过边界表示
- SmartHttpRequest - Class in org.dromara.hutool.http.server.engine.smart
-
SmartHttp请求对象
- SmartHttpRequest(HttpRequest) - Constructor for class org.dromara.hutool.http.server.engine.smart.SmartHttpRequest
-
构造
- SmartHttpResponse - Class in org.dromara.hutool.http.server.engine.smart
-
SmartHttp响应对象
- SmartHttpResponse(HttpResponse) - Constructor for class org.dromara.hutool.http.server.engine.smart.SmartHttpResponse
-
构造
- SmartHttpServerEngine - Class in org.dromara.hutool.http.server.engine.smart
-
smart-http-server引擎
- SmartHttpServerEngine() - Constructor for class org.dromara.hutool.http.server.engine.smart.SmartHttpServerEngine
-
构造
- SoapClient - Class in org.dromara.hutool.http.webservice
-
SOAP客户端
此对象用于构建一个SOAP消息,并通过HTTP接口发出消息内容。
- SoapClient(String) - Constructor for class org.dromara.hutool.http.webservice.SoapClient
-
构造,默认使用soap1.1版本协议
- SoapClient(String, SoapProtocol) - Constructor for class org.dromara.hutool.http.webservice.SoapClient
-
构造
- SoapClient(String, SoapProtocol, String) - Constructor for class org.dromara.hutool.http.webservice.SoapClient
-
构造
- SoapProtocol - Enum in org.dromara.hutool.http.webservice
-
SOAP协议版本枚举
- SoapResponse - Class in org.dromara.hutool.http.webservice
-
SOAP响应对象
- SoapResponse(Response, MessageFactory) - Constructor for class org.dromara.hutool.http.webservice.SoapResponse
-
构造
- SoapRuntimeException - Exception in org.dromara.hutool.http.webservice
-
SOAP异常
- SoapRuntimeException(Throwable) - Constructor for exception org.dromara.hutool.http.webservice.SoapRuntimeException
-
构造
- SoapRuntimeException(String) - Constructor for exception org.dromara.hutool.http.webservice.SoapRuntimeException
-
构造
- SoapRuntimeException(String, Object...) - Constructor for exception org.dromara.hutool.http.webservice.SoapRuntimeException
-
构造
- SoapRuntimeException(String, Throwable) - Constructor for exception org.dromara.hutool.http.webservice.SoapRuntimeException
-
构造
- SoapRuntimeException(String, Throwable, boolean, boolean) - Constructor for exception org.dromara.hutool.http.webservice.SoapRuntimeException
-
构造
- SoapRuntimeException(Throwable, String, Object...) - Constructor for exception org.dromara.hutool.http.webservice.SoapRuntimeException
-
构造
- SoapUtil - Class in org.dromara.hutool.http.webservice
-
SOAP相关工具类
- SoapUtil() - Constructor for class org.dromara.hutool.http.webservice.SoapUtil
-
- SSLInfo - Class in org.dromara.hutool.http.ssl
-
- SSLInfo() - Constructor for class org.dromara.hutool.http.ssl.SSLInfo
-
构造
- start() - Method in class org.dromara.hutool.http.server.engine.jetty.JettyEngine
-
- start() - Method in interface org.dromara.hutool.http.server.engine.ServerEngine
-
启动HTTP服务器
- start() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpServerEngine
-
- start() - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
-
启动Http服务器,启动后会阻塞当前线程
- start() - Method in class org.dromara.hutool.http.server.engine.sun.SunHttpServerEngine
-
- start() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatEngine
-
- start() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowEngine
-
- status - Variable in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
-
响应状态码
- StringBody - Class in org.dromara.hutool.http.client.body
-
String类型的body,一般用于Rest请求的请求体,如JSON或XML
- StringBody(String, Charset) - Constructor for class org.dromara.hutool.http.client.body.StringBody
-
构造,根据body内容类型,自动识别Content-Type
- StringBody(String, String, Charset) - Constructor for class org.dromara.hutool.http.client.body.StringBody
-
构造
- SunHttpServerEngine - Class in org.dromara.hutool.http.server.engine.sun
-
基于Sun HttpServer的HTTP服务器引擎实现
- SunHttpServerEngine() - Constructor for class org.dromara.hutool.http.server.engine.sun.SunHttpServerEngine
-
构造
- SunServerExchangeBase - Class in org.dromara.hutool.http.server.engine.sun
-
HttpServer公用对象,提供HttpExchange包装和公用方法
- SunServerExchangeBase(HttpExchange) - Constructor for class org.dromara.hutool.http.server.engine.sun.SunServerExchangeBase
-
构造
- SunServerRequest - Class in org.dromara.hutool.http.server.engine.sun
-
Sun Http请求包装
- SunServerRequest(HttpExchange) - Constructor for class org.dromara.hutool.http.server.engine.sun.SunServerRequest
-
构造
- SunServerResponse - Class in org.dromara.hutool.http.server.engine.sun
-
SunHttp服务器响应对象
- SunServerResponse(HttpExchange) - Constructor for class org.dromara.hutool.http.server.engine.sun.SunServerResponse
-
构造
- sync() - Method in class org.dromara.hutool.http.client.body.ResponseBody
-
同步数据到内存,以bytes形式存储
- sync() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
-
- sync() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
-
- sync() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
-
- sync() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
-
- sync() - Method in interface org.dromara.hutool.http.client.Response
-
- valueOf(String) - Static method in enum org.dromara.hutool.http.GlobalCompressStreamRegister
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.http.GlobalHeaders
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.http.meta.ContentType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.http.meta.HeaderName
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.http.meta.Method
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dromara.hutool.http.webservice.SoapProtocol
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.dromara.hutool.http.GlobalCompressStreamRegister
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.http.GlobalHeaders
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.http.meta.ContentType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.http.meta.HeaderName
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.http.meta.Method
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dromara.hutool.http.webservice.SoapProtocol
-
Returns an array containing the constants of this enum type, in
the order they are declared.