- 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
- getAddress() - Method in class org.dromara.hutool.http.server.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.HttpExchangeWrapper
-
- getAuth() - Method in class org.dromara.hutool.http.proxy.HttpProxy
-
获取代理验证信息
- getBody() - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
- getBody(Charset) - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获取请求体文本,可以是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.HttpServerRequest
-
获取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.HttpServerRequest
-
获取请求体的流,流中可以读取请求内容,包括请求表单数据或文件上传数据
- 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
- 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.HttpServerRequest
-
获取编码,获取失败默认使用UTF-8,获取规则如下:
1、从Content-Type头中获取编码,类似于:text/html;charset=utf-8
- getCharsetName(String) - Static method in class org.dromara.hutool.http.meta.ContentTypeUtil
-
从Http连接的头信息中获得字符集
从ContentType中获取
- getClientIP(String...) - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获取客户端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.HttpServerRequest
-
获取客户端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
-
获取响应码
- getConnectionPool() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpClientConfig
-
获取连接池
- 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
-
- getContentType() - Method in class org.dromara.hutool.http.multipart.UploadFileHeader
-
Returns uploaded content type.
- getContentType() - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获取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.HttpServerRequest
-
获得指定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.HttpServerRequest
-
获得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.HttpServerRequest
-
获得Cookie信息列表
- getCookiesStr() - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获得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值
- 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() - 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
-
当返回错误代码时,获得错误内容流
- 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(HeaderName) - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeader(String) - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeader(String, Charset) - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeader(HttpServletRequest, String, Charset) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获得请求header中的信息
- 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(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
-
获取请求所有的头(header)信息
- getHeaderMap(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
-
获取请求所有的头(header)信息
- getHeaders() - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获得请求header中的信息
- getHeaders() - Method in class org.dromara.hutool.http.server.HttpServerResponse
-
获得所有响应头,获取后可以添加新的响应头
- 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(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.proxy.HttpProxy
-
获取域名或IP
- getHostnameVerifier() - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
- getHttpContext() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getHttpContext() - Method in class org.dromara.hutool.http.server.HttpServerBase
-
获取HttpContext
- getHttpExchange() - Method in class org.dromara.hutool.http.server.HttpServerBase
-
获取HttpExchange对象
- getHttpResponse() - Method in class org.dromara.hutool.http.webservice.SoapResponse
-
获取原始HTTP响应
- getHttpURLConnection() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获取HttpURLConnection对象
- 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.HttpExchangeWrapper
-
- getMaxFileSize() - Method in class org.dromara.hutool.http.multipart.UploadSetting
-
- getMaxPerRoute() - Method in class org.dromara.hutool.http.client.ApacheHttpClientConfig
-
获取每个路由的最大连接数
- getMaxRedirects() - Method in class org.dromara.hutool.http.client.ApacheHttpClientConfig
-
获取重定向最大次数
- getMaxRedirects() - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
获取全局默认的最大重定向次数,如设置0表示不重定向
如果设置为1,表示重定向一次,即请求两次
- 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.HttpServerRequest
-
获得Http Method
- 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.HttpServerRequest
-
获得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
-
获取系统版本
- getOut() - Method in class org.dromara.hutool.http.server.HttpServerResponse
-
获取响应数据流
- getOutputStream() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
-
获取输出流对象 输出流对象用于发送数据
- getParam(String) - Method in class org.dromara.hutool.http.multipart.MultipartFormData
-
返回单一参数值,如果有多个只返回第一个
- getParam(String) - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获取指定名称的参数值,取第一个值
- 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(String) - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获取指定名称的参数值
- getParams() - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获取参数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.HttpServerRequest
-
获得请求路径Path
- 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.proxy.HttpProxy
-
获取端口
- getPrincipal() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getProtocol() - Method in class org.dromara.hutool.http.server.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
-
获得代理
- getQuery() - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获取请求参数
- getRaw() - Method in class org.dromara.hutool.http.server.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
-
- getRawServer() - Method in class org.dromara.hutool.http.server.SimpleServer
-
获得原始HttpServer对象
- getReadTimeout() - Method in class org.dromara.hutool.http.client.ClientConfig
-
获取读取超时,单位:毫秒
- getRemoteAddress() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getRequest() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
获取请求
- getRequestBody() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getRequestHeaders() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getRequestMethod() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getRequestURI() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getResource() - Method in class org.dromara.hutool.http.client.body.ResourceBody
-
获取资源
- getResponse() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
获取响应
- getResponseBody() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getResponseCode() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getResponseHeaders() - Method in class org.dromara.hutool.http.server.HttpExchangeWrapper
-
- getResponseStr(boolean) - Method in class org.dromara.hutool.http.webservice.SoapResponse
-
获取SOAP消息字符串,默认为XML格式
- getSocketFactory() - Method in class org.dromara.hutool.http.ssl.SSLInfo
-
- 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
-
- getTimeout() - Static method in class org.dromara.hutool.http.HttpGlobalConfig
-
获取全局默认的超时时长
- 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.HttpServerRequest
-
获得请求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 class org.dromara.hutool.http.server.HttpServerRequest
-
获得User-Agent,未识别返回null
- getUserAgentStr() - Method in class org.dromara.hutool.http.server.HttpServerRequest
-
获得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 class org.dromara.hutool.http.server.HttpServerResponse
-
获取响应数据流
- 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(HttpExchange) - Method in class org.dromara.hutool.http.server.handler.ActionHandler
-
- 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的一部分
- 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(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, Charset) - 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, Charset) - 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
-
下载封装,下载统一使用GET请求,默认支持30x跳转
- HttpDownloader() - 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
-
构造
- HttpExchangeWrapper - Class in org.dromara.hutool.http.server
-
HttpExchange包装类,提供增强方法和缓存
- HttpExchangeWrapper(HttpExchange) - Constructor for class org.dromara.hutool.http.server.HttpExchangeWrapper
-
构造
- HttpFilter - Interface in org.dromara.hutool.http.server.filter
-
过滤器接口,用于简化Filter 使用
- HttpGlobalConfig - Class in org.dromara.hutool.http
-
HTTP 全局参数配置
- HttpGlobalConfig() - Constructor for class org.dromara.hutool.http.HttpGlobalConfig
-
- 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的扩展值,格式为:
编码'语言'值
- HttpProxy - Class in org.dromara.hutool.http.proxy
-
HTTP代理,提供代理地址和代理端口的持有。
- HttpProxy(String, int) - Constructor for class org.dromara.hutool.http.proxy.HttpProxy
-
构造
- HttpServerBase - Class in org.dromara.hutool.http.server
-
HttpServer公用对象,提供HttpExchange包装和公用方法
- HttpServerBase(HttpExchange) - Constructor for class org.dromara.hutool.http.server.HttpServerBase
-
构造
- HttpServerRequest - Class in org.dromara.hutool.http.server
-
Http请求对象,对HttpExchange封装
- HttpServerRequest(HttpExchange) - Constructor for class org.dromara.hutool.http.server.HttpServerRequest
-
构造
- HttpServerResponse - Class in org.dromara.hutool.http.server
-
Http响应对象,用于写出数据到客户端
- HttpServerResponse(HttpExchange) - Constructor for class org.dromara.hutool.http.server.HttpServerResponse
-
构造
- HttpStatus - Interface in org.dromara.hutool.http.meta
-
HTTP状态码
- HttpUrlConnectionUtil - Class in org.dromara.hutool.http.client.engine.jdk
-
- HttpUrlConnectionUtil() - Constructor for class org.dromara.hutool.http.client.engine.jdk.HttpUrlConnectionUtil
-
- HttpUtil - Class in org.dromara.hutool.http
-
Http请求工具类
- HttpUtil() - Constructor for class org.dromara.hutool.http.HttpUtil
-
- 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(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
-
- InMemoryCookieStore - Class in org.dromara.hutool.http.client.cookie
-
基于内存的Cookie存储实现,线程安全
- InMemoryCookieStore() - Constructor for class org.dromara.hutool.http.client.cookie.InMemoryCookieStore
-
构造
- 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
-
是否禁用缓存
- isEnable() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
-
是否启用Cookie管理
- 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.
- isFollowRedirects() - Method in class org.dromara.hutool.http.client.ClientConfig
-
- 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 class org.dromara.hutool.http.server.HttpServerRequest
-
是否为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请求
- 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 class org.dromara.hutool.http.server.HttpServerRequest
-
是否为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 class org.dromara.hutool.http.server.HttpServerRequest
-
是否为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信息,从而实现会话保持。
- 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.