Skip navigation links
A B C D E F G H I J K L M N O P R S T U V W 

A

AbstractClientEngine - Class in org.dromara.hutool.http.client.engine
客户端引擎抽象类,用于保存配置和定义初始化,并提供: AbstractClientEngine.reset()用于重置客户端 AbstractClientEngine.initEngine()初始化客户端
AbstractClientEngine() - Constructor for class org.dromara.hutool.http.client.engine.AbstractClientEngine
 
AbstractServerEngine - Class in org.dromara.hutool.http.server.engine
服务端引擎抽象类,实现重置引擎功能
AbstractServerEngine() - Constructor for class org.dromara.hutool.http.server.engine.AbstractServerEngine
 
add(URI, CookieSpi) - Method in interface org.dromara.hutool.http.client.cookie.CookieStoreSpi
添加cookie
add(URI, List<CookieSpi>) - Method in interface org.dromara.hutool.http.client.cookie.CookieStoreSpi
添加指定 http url cookie集合
add(URI, CookieSpi) - Method in class org.dromara.hutool.http.client.cookie.InMemoryCookieStore
 
add(URI, CookieSpi) - Method in class org.dromara.hutool.http.client.cookie.ThreadLocalCookieStore
 
add(URI, HttpCookie) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieStore
 
addAction(String, HttpHandler) - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
增加请求处理规则,使用默认的RootHandler,默认从当前项目根目录读取页面
addCookie(Cookie) - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4CookieStore
 
addCookie(Cookie) - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5CookieStore
 
addCookie(Cookie) - Method in class org.dromara.hutool.http.server.servlet.JavaxServletResponse
增加Cookie
addCookie(HttpServletResponse, Cookie) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
设定返回给客户端的Cookie
addCookie(HttpServletResponse, String, String) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
设定返回给客户端的Cookie
addCookie(HttpServletResponse, String, String, int, String, String) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
设定返回给客户端的Cookie
addCookie(HttpServletResponse, String, String, int) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
设定返回给客户端的Cookie
Path: "/"
No Domain
addCookie(Cookie) - Method in class org.dromara.hutool.http.server.servlet.ServletResponse
增加Cookie
addCookie(HttpServletResponse, Cookie) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
设定返回给客户端的Cookie
addCookie(HttpServletResponse, String, String) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
设定返回给客户端的Cookie
addCookie(HttpServletResponse, String, String, int, String, String) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
设定返回给客户端的Cookie
addCookie(HttpServletResponse, String, String, int) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
设定返回给客户端的Cookie
Path: "/"
No Domain
addCustomBrowser(String, String, String) - Static method in class org.dromara.hutool.http.useragent.Browser
添加自定义的浏览器类型
addCustomOs(String, String, String) - Static method in class org.dromara.hutool.http.useragent.OS
添加自定义的系统类型
addFilter(Filter) - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
增加请求过滤器,此过滤器对所有请求有效
此方法需在以下方法前之前调用: SimpleServer.setRoot(File) SimpleServer.setRoot(String) SimpleServer.createContext(String, HttpHandler) SimpleServer.addHandler(String, HttpHandler)
addFilter(HttpFilter) - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
增加请求过滤器,此过滤器对所有请求有效
此方法需在以下方法前之前调用: SimpleServer.setRoot(File) SimpleServer.setRoot(String) SimpleServer.createContext(String, HttpHandler) SimpleServer.addHandler(String, HttpHandler)
addFilter(Filter) - Method in class org.dromara.hutool.http.server.engine.sun.SunHttpServerEngine
增加请求过滤器,此过滤器对所有请求有效
此方法需在以下方法前之前调用: SunHttpServerEngine.createContext(String, HttpHandler)
addFilter(HttpFilter) - Method in class org.dromara.hutool.http.server.engine.sun.SunHttpServerEngine
增加请求过滤器,此过滤器对所有请求有效
此方法需在以下方法前之前调用: SunHttpServerEngine.createContext(String, HttpHandler)
addHandler(String, HttpHandler) - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
增加请求处理规则
addHeader(String, String) - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpResponse
 
addHeader(String, String) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
 
addHeader(String, String) - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatResponse
 
addHeader(String, String) - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
 
addHeader(String, String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
添加响应头,如果已经存在,则追加
addHeader(String, String) - Method in class org.dromara.hutool.http.server.servlet.JavaxServletResponse
 
addHeader(String, String) - Method in class org.dromara.hutool.http.server.servlet.ServletResponse
 
addSOAPHeader(QName, String, String, Boolean, Boolean) - Method in class org.dromara.hutool.http.webservice.SoapClient
增加SOAP头信息,方法返回SOAPHeaderElement可以设置具体属性和子节点
addSOAPHeader(String) - Method in class org.dromara.hutool.http.webservice.SoapClient
增加SOAP头信息,方法返回SOAPHeaderElement可以设置具体属性和子节点
addSOAPHeader(String, String) - Method in class org.dromara.hutool.http.webservice.SoapClient
增加SOAP头信息,方法返回SOAPHeaderElement可以设置具体属性和子节点
addSOAPHeader(QName) - Method in class org.dromara.hutool.http.webservice.SoapClient
增加SOAP头信息,方法返回SOAPHeaderElement可以设置具体属性和子节点
afterException(SunServerRequest, SunServerResponse, Throwable) - Method in class org.dromara.hutool.http.server.engine.sun.filter.DefaultExceptionFilter
 
afterException(SunServerRequest, SunServerResponse, Throwable) - Method in class org.dromara.hutool.http.server.engine.sun.filter.ExceptionFilter
异常之后的处理逻辑
allowPatch() - Static method in class org.dromara.hutool.http.client.engine.jdk.HttpUrlConnectionUtil
增加支持的METHOD方法
此方法通过注入方式修改HttpURLConnection中的methods静态属性,增加PATCH方法
see: https://stackoverflow.com/questions/25163131/httpurlconnection-invalid-http-method-patch
allowPatchQuietly() - Static method in class org.dromara.hutool.http.client.engine.jdk.HttpUrlConnectionUtil
增加支持的METHOD方法
此方法通过注入方式修改HttpURLConnection中的methods静态属性,增加PATCH方法
see: https://stackoverflow.com/questions/25163131/httpurlconnection-invalid-http-method-patch
ANDROID - Static variable in class org.dromara.hutool.http.useragent.Platform
android
ApacheHttpClientConfig - Class in org.dromara.hutool.http.client
针对HttpClient5和HttpClient4的配置
ApacheHttpClientConfig() - Constructor for class org.dromara.hutool.http.client.ApacheHttpClientConfig
 
auth(String) - Method in interface org.dromara.hutool.http.client.HeaderOperation
验证,简单插入Authorization头
authenticate(Route, Response) - Method in class org.dromara.hutool.http.client.engine.okhttp.BasicProxyAuthenticator
 
available() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpInputStream
 

B

basicAuth(String, String, Charset) - Method in interface org.dromara.hutool.http.client.HeaderOperation
简单验证,生成的头信息类似于: Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l
basicAuth(String, String) - Method in class org.dromara.hutool.http.client.Request
简单验证,生成的头信息类似于: Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l
BasicProxyAuthenticator - Class in org.dromara.hutool.http.client.engine.okhttp
账号密码形式的代理验证
生成类似: Proxy-Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l
BasicProxyAuthenticator(PasswordAuthentication) - Constructor for class org.dromara.hutool.http.client.engine.okhttp.BasicProxyAuthenticator
构造
bearerAuth(String) - Method in interface org.dromara.hutool.http.client.HeaderOperation
令牌验证,生成的头类似于:"Authorization: Bearer XXXXX",一般用于JWT
body() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
 
body() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
 
body() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
 
body() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
 
body() - Method in class org.dromara.hutool.http.client.Request
获取请求体
body(String) - Method in class org.dromara.hutool.http.client.Request
添加字符串请求体
body(HttpBody) - Method in class org.dromara.hutool.http.client.Request
添加请求体
body() - Method in interface org.dromara.hutool.http.client.Response
获取响应体,包含服务端返回的内容和Content-Type信息
如果为HEAD、CONNECT、TRACE等方法无响应体,则返回null
bodyBytes() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
获取响应流字节码
此方法会转为同步模式
bodyBytes() - Method in class org.dromara.hutool.http.client.Request
获取请求体字节码
bodyBytes() - Method in interface org.dromara.hutool.http.client.Response
获取响应流字节码
此方法会转为同步模式,读取响应流并关闭之
bodyStr() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
 
bodyStr() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
 
bodyStr() - Method in class org.dromara.hutool.http.client.Request
获取请求体字符串
bodyStr() - Method in interface org.dromara.hutool.http.client.Response
获取响应主体
bodyStream() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
 
bodyStream() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
 
bodyStream() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
获得服务区响应流
异步模式下获取Http原生流,同步模式下获取获取到的在内存中的副本
如果想在同步模式下获取流,请先调用JdkHttpResponse.sync()方法强制同步
流获取后处理完毕需关闭此类
bodyStream() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
 
bodyStream() - Method in class org.dromara.hutool.http.client.Request
获取请求体资源流
bodyStream() - Method in interface org.dromara.hutool.http.client.Response
获得服务区响应流
流获取后处理完毕需关闭此类
boundary - Variable in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
part部分边界
browers - Static variable in class org.dromara.hutool.http.useragent.Browser
支持的浏览器类型
Browser - Class in org.dromara.hutool.http.useragent
浏览器对象
Browser(String, String, String) - Constructor for class org.dromara.hutool.http.useragent.Browser
构造
BrowserEngine - Class in org.dromara.hutool.http.useragent
浏览器引擎对象
BrowserEngine(String, String) - Constructor for class org.dromara.hutool.http.useragent.BrowserEngine
构造
build(Request) - Method in interface org.dromara.hutool.http.client.engine.EngineRequestBuilder
构建引擎请求对象
build(SSLInfo) - Static method in class org.dromara.hutool.http.client.engine.httpclient4.ConnectionSocketFactoryRegistryBuilder
构建默认的连接工厂注册器,默认支持SSL
build() - Method in class org.dromara.hutool.http.client.engine.httpclient4.ConnectionSocketFactoryRegistryBuilder
 
build(Request) - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpUriRequestBuilder
 
build(Request) - Method in class org.dromara.hutool.http.client.engine.httpclient5.ClassicHttpRequestBuilder
 
build() - Method in class org.dromara.hutool.http.client.engine.httpclient5.TlsSocketStrategyBuilder
 
build(Request) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkRequestBuilder
 
build(Request) - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpRequestBuilder
 
build(String, Charset) - Static method in enum org.dromara.hutool.http.meta.ContentType
输出Content-Type字符串,附带编码信息
build(ContentType, Charset) - Static method in enum org.dromara.hutool.http.meta.ContentType
输出Content-Type字符串,附带编码信息
buildBasicAuth(PasswordAuthentication, Charset) - Static method in class org.dromara.hutool.http.auth.HttpAuthUtil
构建简单的账号秘密验证信息,构建后类似于: Basic YWxhZGRpbjpvcGVuc2VzYW1l
buildBasicAuth(String, String, Charset) - Static method in class org.dromara.hutool.http.auth.HttpAuthUtil
构建简单的账号秘密验证信息,构建后类似于: Basic YWxhZGRpbjpvcGVuc2VzYW1l
BytesBody - Class in org.dromara.hutool.http.client.body
bytes类型的Http request body,主要发送编码后的表单数据或rest body(如JSON或XML)
BytesBody(byte[]) - Constructor for class org.dromara.hutool.http.client.body.BytesBody
构造

C

charset - Variable in class org.dromara.hutool.http.client.body.FormBody
编码
charset() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
 
charset() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
 
charset() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
 
charset() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
 
charset(Charset) - Method in class org.dromara.hutool.http.client.Request
设置自定义编码,一般用于: 编码请求体 服务端未返回编码时,使用此编码解码响应体
charset() - Method in class org.dromara.hutool.http.client.Request
获取请求编码,默认Request.DEFAULT_CHARSET,一般用于: 编码请求体 服务端未返回编码时,使用此编码解码响应体
charset() - Method in interface org.dromara.hutool.http.client.Response
获取字符集编码,默认为响应头中的编码
charset(Charset) - Method in class org.dromara.hutool.http.webservice.SoapClient
设置编码
CHARSET_PATTERN - Static variable in class org.dromara.hutool.http.meta.ContentTypeUtil
正则:Content-Type中的编码信息
ClassicHttpRequestBuilder - Class in org.dromara.hutool.http.client.engine.httpclient5
HttpClient5请求构建器
ClassicHttpRequestBuilder() - Constructor for class org.dromara.hutool.http.client.engine.httpclient5.ClassicHttpRequestBuilder
 
cleanHtmlTag(String) - Static method in class org.dromara.hutool.http.html.HtmlUtil
清除所有HTML标签,但是不删除标签内的内容
clear() - Method in interface org.dromara.hutool.http.client.cookie.CookieStoreSpi
移除所有cookie
clear() - Method in class org.dromara.hutool.http.client.cookie.InMemoryCookieStore
 
clear() - Method in class org.dromara.hutool.http.client.cookie.ThreadLocalCookieStore
 
clear() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4CookieStore
 
clear() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5CookieStore
 
clearExpired(Date) - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4CookieStore
 
clearExpired(Date) - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5CookieStore
 
clearHeaders() - Method in enum org.dromara.hutool.http.GlobalHeaders
清除所有头信息,包括全局头信息
clearHeaders() - Method in class org.dromara.hutool.http.webservice.SoapClient
清除所有头信息,包括全局头信息
ClientConfig - Class in org.dromara.hutool.http.client
Http客户端配置
ClientConfig() - Constructor for class org.dromara.hutool.http.client.ClientConfig
构造
ClientEngine - Interface in org.dromara.hutool.http.client.engine
HTTP客户端引擎接口,通过不同实现,完成HTTP请求发送
ClientEngineFactory - Class in org.dromara.hutool.http.client.engine
Http客户端引擎工厂类
ClientEngineFactory() - Constructor for class org.dromara.hutool.http.client.engine.ClientEngineFactory
 
close() - Method in class org.dromara.hutool.http.client.body.MultipartOutputStream
 
close() - Method in class org.dromara.hutool.http.client.body.ResponseBody
 
close() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Engine
 
close() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
 
close() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5BodyEntity
 
close() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Engine
 
close() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
 
close() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkClientEngine
 
close() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
断开连接
close() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpInputStream
 
close() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
 
close() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpEngine
 
close() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
 
close() - Method in class org.dromara.hutool.http.server.engine.sun.HttpExchangeWrapper
 
close() - Method in class org.dromara.hutool.http.server.engine.sun.SunServerExchangeBase
调用HttpExchange.close(),关闭请求流和响应流
closeQuietly() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
静默断开连接。
config - Variable in class org.dromara.hutool.http.client.engine.AbstractClientEngine
 
config - Variable in class org.dromara.hutool.http.server.engine.AbstractServerEngine
 
connect() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
连接
ConnectionSocketFactoryRegistryBuilder - Class in org.dromara.hutool.http.client.engine.httpclient4
HttpClient4连接工厂注册器构建器
ConnectionSocketFactoryRegistryBuilder() - Constructor for class org.dromara.hutool.http.client.engine.httpclient4.ConnectionSocketFactoryRegistryBuilder
构造
contentEncoding() - Method in interface org.dromara.hutool.http.client.HeaderOperation
获取压缩媒体类型
contentEncoding() - Method in interface org.dromara.hutool.http.client.Response
获取内容编码
contentLength() - Method in interface org.dromara.hutool.http.client.body.HttpBody
获取写出字节长度,未知为-1
contentLength() - Method in class org.dromara.hutool.http.client.body.ResourceBody
 
contentLength() - Method in class org.dromara.hutool.http.client.body.ResponseBody
 
contentLength() - Method in class org.dromara.hutool.http.client.body.UrlEncodedFormBody
 
contentLength() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
 
contentLength() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
 
contentLength() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpRequestBody
 
contentLength() - Method in interface org.dromara.hutool.http.client.HeaderOperation
获取内容长度,以下情况长度无效: Transfer-Encoding: Chunked Content-Encoding: XXX
contentLength() - Method in interface org.dromara.hutool.http.client.Response
获取内容长度,以下情况长度无效: Transfer-Encoding: Chunked Content-Encoding: XXX 参考:https://blog.csdn.net/jiang7701037/article/details/86304302
contentType() - Method in interface org.dromara.hutool.http.client.body.HttpBody
获取Content-Type
根据实现不同,Content-Type可能包含编码信息,也可以不包含
contentType(Charset) - Method in interface org.dromara.hutool.http.client.body.HttpBody
获取指定编码的Content-Type,类似于:application/json;charset=UTF-8
如果HttpBody.contentType() 已经包含编码信息,则编码信息一致直接返回,否则替换为指定编码。
contentType() - Method in class org.dromara.hutool.http.client.body.MultipartBody
获取Multipart的Content-Type类型
contentType(Charset) - Method in class org.dromara.hutool.http.client.body.MultipartBody
 
contentType() - Method in class org.dromara.hutool.http.client.body.ResourceBody
 
contentType() - Method in class org.dromara.hutool.http.client.body.ResponseBody
 
contentType() - Method in class org.dromara.hutool.http.client.body.UrlEncodedFormBody
 
contentType() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpRequestBody
 
contentType(String) - Method in interface org.dromara.hutool.http.client.HeaderOperation
设置contentType
ContentType - Enum in org.dromara.hutool.http.meta
常用Content-Type类型枚举
ContentTypeUtil - Class in org.dromara.hutool.http.meta
Content-Type解析工具
ContentTypeUtil() - Constructor for class org.dromara.hutool.http.meta.ContentTypeUtil
 
cookie(Collection<HttpCookie>) - Method in interface org.dromara.hutool.http.client.HeaderOperation
设置Cookie
自定义Cookie后会覆盖Hutool的默认Cookie行为
cookie(HttpCookie...) - Method in interface org.dromara.hutool.http.client.HeaderOperation
设置Cookie
自定义Cookie后会覆盖Hutool的默认Cookie行为
cookie(String) - Method in interface org.dromara.hutool.http.client.HeaderOperation
设置Cookie
自定义Cookie后会覆盖Hutool的默认Cookie行为
CookieJarImpl - Class in org.dromara.hutool.http.client.engine.okhttp
CookieJar实现,用于OkHttp3
CookieJarImpl(CookieStoreSpi) - Constructor for class org.dromara.hutool.http.client.engine.okhttp.CookieJarImpl
构造
CookieSpi - Interface in org.dromara.hutool.http.client.cookie
Cookie SPI接口,用于自定义Cookie的实现
遵循RFC6265规范:https://datatracker.ietf.org/doc/html/rfc6265
参考:https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Cookies
Cookie 主要用于以下三个方面: 会话状态管理: 用户登录状态、购物车、游戏分数或其他需要记录的信息 个性化设置: 如用户自定义设置、主题和其他设置 浏览器行为跟踪: 如跟踪分析用户行为等
cookieStore - Variable in class org.dromara.hutool.http.client.engine.AbstractClientEngine
 
CookieStoreSpi - Interface in org.dromara.hutool.http.client.cookie
CookieStore接口
copy(OutputStream) - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
字节流复制到out,直到下一个boundary
copy(OutputStream, long) - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
复制字节流到out, 大于maxBytes或者文件末尾停止
createAttachmentDisposition(String, Charset) - Static method in class org.dromara.hutool.http.meta.HttpHeaderUtil
生成Content-Disposition头,用于下载文件
格式为: attachment;filename="example.txt";filename*=UTF-8''example.txt
createClient(String) - Static method in class org.dromara.hutool.http.HttpUtil
创建客户端引擎
createClient(String) - Static method in class org.dromara.hutool.http.webservice.SoapUtil
创建SOAP客户端,默认使用soap1.1版本协议
createClient(String, SoapProtocol) - Static method in class org.dromara.hutool.http.webservice.SoapUtil
创建SOAP客户端
createClient(String, SoapProtocol, String) - Static method in class org.dromara.hutool.http.webservice.SoapUtil
创建SOAP客户端
createContext(String, HttpHandler) - Method in class org.dromara.hutool.http.server.engine.sun.SimpleServer
创建请求映射上下文,创建后,用户访问指定路径可使用HttpHandler 中的规则进行处理
createContext(String, HttpHandler) - Method in class org.dromara.hutool.http.server.engine.sun.SunHttpServerEngine
创建请求映射上下文,创建后,用户访问指定路径可使用HttpHandler 中的规则进行处理
createEngine(ClientConfig) - Static method in class org.dromara.hutool.http.client.engine.ClientEngineFactory
根据用户引入的HTTP客户端引擎jar,自动创建对应的HTTP客户端引擎对象
推荐创建的引擎单例使用,此方法每次调用会返回新的引擎
对不同引擎个性化配置,使用对应的ClientConfig 子类: HttpClient4和HttpClient5使用ApacheHttpClientConfig OkHttp使用OkHttpClientConfig 如果混用这些配置,则个性配置不生效
createEngine(String) - Static method in class org.dromara.hutool.http.client.engine.ClientEngineFactory
创建自定义引擎
createEngine() - Static method in class org.dromara.hutool.http.client.engine.ClientEngineFactory
根据用户引入的HTTP客户端引擎jar,自动创建对应的HTTP客户端引擎对象
推荐创建的引擎单例使用,此方法每次调用会返回新的引擎
createEngine(ServerConfig) - Static method in class org.dromara.hutool.http.server.engine.ServerEngineFactory
根据用户引入的HTTP客户端引擎jar,自动创建对应的HTTP服务器引擎对象
推荐创建的引擎单例使用,此方法每次调用会返回新的引擎
对不同引擎个性化配置,使用对应的ServerConfig 子类: 如果混用这些配置,则个性配置不生效
createEngine(String) - Static method in class org.dromara.hutool.http.server.engine.ServerEngineFactory
创建自定义引擎
createEngine() - Static method in class org.dromara.hutool.http.server.engine.ServerEngineFactory
根据用户引入的HTTP服务器引擎jar,自动创建对应的HTTP客服务器引擎对象
推荐创建的引擎单例使用,此方法每次调用会返回新的引擎
createGet(String) - Static method in class org.dromara.hutool.http.HttpUtil
创建Http GET请求对象
createPost(String) - Static method in class org.dromara.hutool.http.HttpUtil
创建Http POST请求对象
createRequest(String, Method) - Static method in class org.dromara.hutool.http.HttpUtil
创建Http请求对象
createServer(int) - Static method in class org.dromara.hutool.http.HttpUtil
创建简易的Http服务器
createSocket() - Method in class org.dromara.hutool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(Socket, String, int, boolean) - Method in class org.dromara.hutool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(String, int) - Method in class org.dromara.hutool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(String, int, InetAddress, int) - Method in class org.dromara.hutool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(InetAddress, int) - Method in class org.dromara.hutool.http.ssl.CustomProtocolsSSLFactory
 
createSocket(InetAddress, int, InetAddress, int) - Method in class org.dromara.hutool.http.ssl.CustomProtocolsSSLFactory
 
createSSLEngine() - Method in class org.dromara.hutool.http.server.engine.tomcat.JSSESSLContext
 
CustomProtocolsSSLFactory - Class in org.dromara.hutool.http.ssl
自定义支持协议类型的SSLSocketFactory
CustomProtocolsSSLFactory(SSLSocketFactory, String...) - Constructor for class org.dromara.hutool.http.ssl.CustomProtocolsSSLFactory
构造

D

DEFAULT - Static variable in class org.dromara.hutool.http.ssl.SSLInfo
默认SSLInfo,全部为null,使用客户端引擎默认配置
DEFAULT_CHARSET - Static variable in interface org.dromara.hutool.http.server.handler.ServerRequest
默认编码,用于获取请求头和响应头编码,默认为UTF-8
DEFAULT_CHARSET - Static variable in interface org.dromara.hutool.http.server.handler.ServerResponse
默认编码,用于获取请求头和响应头编码,默认为UTF-8
DEFAULT_INDEX_FILE_NAME - Static variable in class org.dromara.hutool.http.server.handler.RootHandler
默认主页文件名
DefaultExceptionFilter - Class in org.dromara.hutool.http.server.engine.sun.filter
默认异常处理拦截器
DefaultExceptionFilter() - Constructor for class org.dromara.hutool.http.server.engine.sun.filter.DefaultExceptionFilter
 
delete() - Method in class org.dromara.hutool.http.multipart.UploadFile
从磁盘或者内存中删除这个文件
description() - Method in class org.dromara.hutool.http.server.engine.sun.filter.SimpleFilter
 
desktopPlatforms - Static variable in class org.dromara.hutool.http.useragent.Platform
支持的桌面平台类型
destroy() - Method in class org.dromara.hutool.http.server.engine.tomcat.JSSESSLContext
 
disableCookie() - Method in interface org.dromara.hutool.http.client.HeaderOperation
禁用默认Cookie行为,此方法调用后会将Cookie置为空。
doFilter(SunServerRequest, SunServerResponse, Filter.Chain) - Method in class org.dromara.hutool.http.server.engine.sun.filter.ExceptionFilter
 
doFilter(SunServerRequest, SunServerResponse, Filter.Chain) - Method in interface org.dromara.hutool.http.server.engine.sun.filter.HttpFilter
执行过滤
download(OutputStream, boolean) - Method in class org.dromara.hutool.http.client.HttpDownloader
下载文件
downloadFile(File) - Method in class org.dromara.hutool.http.client.HttpDownloader
下载文件
downloadFile(File, String) - Method in class org.dromara.hutool.http.client.HttpDownloader
下载文件

E

enableDefaultCookie() - Method in interface org.dromara.hutool.http.client.HeaderOperation
打开默认的Cookie行为(自动回填服务器传回的Cookie)
enableSSLVerify() - Method in class org.dromara.hutool.http.client.ClientConfig
打开SSL验证,即使用引擎默认的SSL验证方式
EngineRequestBuilder<T> - Interface in org.dromara.hutool.http.client.engine
引擎的请求对象构建器
用于将Request转换为引擎对应的请求对象
engines - Static variable in class org.dromara.hutool.http.useragent.BrowserEngine
支持的引擎类型
equals(Object) - Method in class org.dromara.hutool.http.useragent.UserAgentInfo
 
escape(String) - Static method in class org.dromara.hutool.http.html.HtmlUtil
转义文本中的HTML字符为安全的字符,以下字符被转义: ' 替换为 &#039; (&apos; doesn't work in HTML4) " 替换为 &quot; & 替换为 &amp; < 替换为 &lt; > 替换为 &gt;
ExceptionFilter - Class in org.dromara.hutool.http.server.engine.sun.filter
异常处理过滤器
ExceptionFilter() - Constructor for class org.dromara.hutool.http.server.engine.sun.filter.ExceptionFilter
 
ExtendedValue(String) - Constructor for class org.dromara.hutool.http.meta.HttpHeaderUtil.ExtendedValue
构造

F

fileExts - Variable in class org.dromara.hutool.http.multipart.UploadSetting
文件扩展名限定
fillBean(ServletRequest, T, CopyOptions) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
ServletRequest 参数转Bean
fillBean(ServletRequest, T, boolean) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
ServletRequest 参数转Bean
fillBean(ServletRequest, T, CopyOptions) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
ServletRequest 参数转Bean
fillBean(ServletRequest, T, boolean) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
ServletRequest 参数转Bean
filter(String) - Method in class org.dromara.hutool.http.html.HtmlFilter
given a user submitted input String, filter out any invalid or restricted html.
filter(String) - Static method in class org.dromara.hutool.http.html.HtmlUtil
过滤HTML文本,防止XSS攻击
finish() - Method in class org.dromara.hutool.http.client.body.MultipartOutputStream
上传表单结束
form - Variable in class org.dromara.hutool.http.client.body.FormBody
存储表单数据
form() - Method in class org.dromara.hutool.http.client.body.FormBody
获取表单内容
form(Map<String, Object>) - Method in class org.dromara.hutool.http.client.body.FormBody
设置map类型表单数据
form(String, Object) - Method in class org.dromara.hutool.http.client.body.FormBody
设置表单数据
如果传入值为null,则移除这个表单项
form(String, Object) - Method in class org.dromara.hutool.http.client.body.UrlEncodedFormBody
 
form(Map<String, Object>) - Method in class org.dromara.hutool.http.client.Request
添加请求表单内容
FormBody<T extends FormBody<T>> - Class in org.dromara.hutool.http.client.body
Form表单形式的消息体
FormBody(Map<String, Object>, Charset) - Constructor for class org.dromara.hutool.http.client.body.FormBody
构造

G

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
获取请求体文本,可以是form表单、json、xml等任意内容
使用ServerRequest.getCharset()判断编码,判断失败使用UTF-8编码
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
获取响应码
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
 
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
获取最大请求(响应)头大小
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,表示重定向一次,即请求两次
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
获取全局默认的超时时长
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

H

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
 
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
 
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
HttpBody转换为HttpEntity对象
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
HttpBody转换为HttpEntity对象
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
针对HttpURLConnection相关工具
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
 

I

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
设置客户端引擎参数,如超时、代理等信息 对不同引擎个性化配置,使用对应的ClientConfig 子类: HttpClient4和HttpClient5使用ApacheHttpClientConfig OkHttp使用OkHttpClientConfig 如果混用这些配置,则个性配置不生效
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请求
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信息,从而实现会话保持。

J

JavaxServletRequest - Class in org.dromara.hutool.http.server.servlet
Javax Servlet请求对象包装
JavaxServletRequest(HttpServletRequest) - Constructor for class org.dromara.hutool.http.server.servlet.JavaxServletRequest
构造
JavaxServletResponse - Class in org.dromara.hutool.http.server.servlet
Javax Jetty响应对象包装
JavaxServletResponse(HttpServletResponse) - Constructor for class org.dromara.hutool.http.server.servlet.JavaxServletResponse
构造
JavaxServletUtil - Class in org.dromara.hutool.http.server.servlet
javax.Servlet相关工具类封装
JavaxServletUtil() - Constructor for class org.dromara.hutool.http.server.servlet.JavaxServletUtil
 
JdkClientEngine - Class in org.dromara.hutool.http.client.engine.jdk
基于JDK的UrlConnection的Http客户端引擎实现
JdkClientEngine() - Constructor for class org.dromara.hutool.http.client.engine.jdk.JdkClientEngine
构造
JdkCookie - Class in org.dromara.hutool.http.client.engine.jdk
JDK Cookie实现
JdkCookie(HttpCookie) - Constructor for class org.dromara.hutool.http.client.engine.jdk.JdkCookie
构造
JdkCookieManager - Class in org.dromara.hutool.http.client.engine.jdk
JDK Cookie管理器,用于管理Cookie信息,包括: 1.
JdkCookieManager(CookieStoreSpi) - Constructor for class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
构造
JdkCookieManager(CookieManager) - Constructor for class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
构造
JdkCookieStore - Class in org.dromara.hutool.http.client.engine.jdk
JDK CookieStore实现
JdkCookieStore(CookieStoreSpi) - Constructor for class org.dromara.hutool.http.client.engine.jdk.JdkCookieStore
构造
JdkHttpConnection - Class in org.dromara.hutool.http.client.engine.jdk
http连接对象,对HttpURLConnection的包装
JdkHttpConnection(URL, Proxy) - Constructor for class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
构造HttpConnection
JdkHttpInputStream - Class in org.dromara.hutool.http.client.engine.jdk
HTTP输入流,此流用于包装Http请求响应内容的流,用于解析各种压缩、分段的响应流内容
JdkHttpInputStream(JdkHttpResponse) - Constructor for class org.dromara.hutool.http.client.engine.jdk.JdkHttpInputStream
构造
JdkHttpResponse - Class in org.dromara.hutool.http.client.engine.jdk
Http响应类
非线程安全对象
JdkHttpResponse(JdkHttpConnection, JdkCookieManager, Request) - Constructor for class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
构造
JdkRequestBuilder - Class in org.dromara.hutool.http.client.engine.jdk
JDK Http请求构建器
JdkRequestBuilder(ClientConfig, JdkCookieManager) - Constructor for class org.dromara.hutool.http.client.engine.jdk.JdkRequestBuilder
构造
Jetty9Handler - Class in org.dromara.hutool.http.server.engine.jetty
Jetty9版本使用的Handler
Jetty9Handler(HttpHandler) - Constructor for class org.dromara.hutool.http.server.engine.jetty.Jetty9Handler
构造
JettyEngine - Class in org.dromara.hutool.http.server.engine.jetty
Jetty引擎实现
JettyEngine() - Constructor for class org.dromara.hutool.http.server.engine.jetty.JettyEngine
构造
JSSESSLContext - Class in org.dromara.hutool.http.server.engine.tomcat
Tomcat SSLContext实现
JSSESSLContext(SSLContext) - Constructor for class org.dromara.hutool.http.server.engine.tomcat.JSSESSLContext
构造

K

keepAlive(boolean) - Method in interface org.dromara.hutool.http.client.HeaderOperation
设置是否为长连接

L

lastHeader - Variable in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
最后的头部信息
loadForRequest(JdkHttpConnection) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
将本地存储的Cookie信息附带到Http请求中,不覆盖用户定义好的Cookie
loadForRequest(HttpUrl) - Method in class org.dromara.hutool.http.client.engine.okhttp.CookieJarImpl
 
locationTo(String) - Method in class org.dromara.hutool.http.client.Request
更新设置重定向后的URL,用于处理相对路径
注意此方法会修改对象本身

M

mark(int) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpInputStream
 
markSupported() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpInputStream
 
maxFileSize - Variable in class org.dromara.hutool.http.multipart.UploadSetting
最大文件大小,默认无限制
maxRedirects() - Method in class org.dromara.hutool.http.client.Request
获取最大重定向请求次数
如果次数小于1则表示不重定向,大于等于1表示打开重定向。
memoryThreshold - Variable in class org.dromara.hutool.http.multipart.UploadSetting
文件保存到内存的边界
META_CHARSET_PATTERN - Static variable in class org.dromara.hutool.http.html.HtmlUtil
正则:匹配meta标签的编码信息
method() - Method in class org.dromara.hutool.http.client.Request
获取Http请求方法
method(Method) - Method in class org.dromara.hutool.http.client.Request
设置请求方法
Method - Enum in org.dromara.hutool.http.meta
Http方法枚举
mobilePlatforms - Static variable in class org.dromara.hutool.http.useragent.Platform
支持的移动平台类型
MultipartBody - Class in org.dromara.hutool.http.client.body
Multipart/form-data数据的请求体封装
遵循RFC2387规范,见:https://www.rfc-editor.org/rfc/rfc2387
MultipartBody(Map<String, Object>, Charset, String) - Constructor for class org.dromara.hutool.http.client.body.MultipartBody
构造
MultipartFormData - Class in org.dromara.hutool.http.multipart
HttpRequest解析器
来自Jodd
MultipartFormData() - Constructor for class org.dromara.hutool.http.multipart.MultipartFormData
构造
MultipartFormData(UploadSetting) - Constructor for class org.dromara.hutool.http.multipart.MultipartFormData
构造
MultipartOutputStream - Class in org.dromara.hutool.http.client.body
Multipart/form-data输出流封装
遵循RFC2387规范,见:https://www.rfc-editor.org/rfc/rfc2387
MultipartOutputStream(OutputStream, Charset) - Constructor for class org.dromara.hutool.http.client.body.MultipartOutputStream
构造,使用全局默认的边界字符串
MultipartOutputStream(OutputStream, Charset, String) - Constructor for class org.dromara.hutool.http.client.body.MultipartOutputStream
构造
MultipartRequestInputStream - Class in org.dromara.hutool.http.multipart
Http请求解析流,提供了专门针对带文件的form表单的解析
来自Jodd
MultipartRequestInputStream(InputStream) - Constructor for class org.dromara.hutool.http.multipart.MultipartRequestInputStream
构造

N

NameUnknown - Static variable in class org.dromara.hutool.http.useragent.UserAgentInfo
未知类型

O

of() - Static method in class org.dromara.hutool.http.client.ApacheHttpClientConfig
创建新的 HttpClientConfig
of(byte[]) - Static method in class org.dromara.hutool.http.client.body.BytesBody
创建 Http request body
of(Map<String, Object>, Charset) - Static method in class org.dromara.hutool.http.client.body.MultipartBody
根据已有表单内容,构建MultipartBody,使用全局默认的边界符HttpGlobalConfig.getBoundary()
of(Map<String, Object>, Charset, String) - Static method in class org.dromara.hutool.http.client.body.MultipartBody
根据已有表单内容,构建MultipartBody
of(HttpResource) - Static method in class org.dromara.hutool.http.client.body.ResourceBody
创建 Http request body
of(Map<String, Object>, Charset) - Static method in class org.dromara.hutool.http.client.body.UrlEncodedFormBody
创建 Http request body
of() - Static method in class org.dromara.hutool.http.client.ClientConfig
创建新的 ClientConfig
of() - Static method in class org.dromara.hutool.http.client.engine.httpclient4.ConnectionSocketFactoryRegistryBuilder
创建
of() - Static method in class org.dromara.hutool.http.client.engine.httpclient5.TlsSocketStrategyBuilder
创建TLS Socket策略构建器
of(String, Proxy) - Static method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
创建HttpConnection
of(URL, Proxy) - Static method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
创建HttpConnection
of() - Static method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpClientConfig
创建新的 OkHttpClientConfig
of(String) - Static method in class org.dromara.hutool.http.client.HttpDownloader
创建下载器
of(String) - Static method in class org.dromara.hutool.http.client.Request
构建一个HTTP请求,默认编解码规则,规则为: 如果传入的URL已编码,则先解码,再按照RFC3986规范重新编码。
of(String, Charset) - Static method in class org.dromara.hutool.http.client.Request
构建一个HTTP请求
对于传入的URL,可以自定义是否解码已经编码的内容,规则如下:
如果url已编码,则decodeAndEncodeCharset设置为null,此时URL不会解码,发送也不编码。
of(UrlBuilder) - Static method in class org.dromara.hutool.http.client.Request
构建一个HTTP请求
of(String) - Static method in class org.dromara.hutool.http.meta.HttpHeaderUtil.ExtendedValue
创建扩展值
of() - Static method in class org.dromara.hutool.http.server.ServerConfig
创建配置
of() - Static method in class org.dromara.hutool.http.ssl.SSLInfo
构建SSLInfo
of(String) - Static method in class org.dromara.hutool.http.webservice.SoapClient
创建SOAP客户端,默认使用soap1.1版本协议
of(String, SoapProtocol) - Static method in class org.dromara.hutool.http.webservice.SoapClient
创建SOAP客户端
of(String, SoapProtocol, String) - Static method in class org.dromara.hutool.http.webservice.SoapClient
创建SOAP客户端
ofWithoutEncode(String) - Static method in class org.dromara.hutool.http.client.Request
构建一个HTTP请求,不解码和编码,此时要求用户传入的URL必须是已经编码过的。
OkCookie - Class in org.dromara.hutool.http.client.engine.okhttp
OkHttp Cookie实现
OkCookie(Cookie) - Constructor for class org.dromara.hutool.http.client.engine.okhttp.OkCookie
构造
OkHttpClientConfig - Class in org.dromara.hutool.http.client.engine.okhttp
OkHttpClient 配置
OkHttpClientConfig() - Constructor for class org.dromara.hutool.http.client.engine.okhttp.OkHttpClientConfig
 
OkHttpEngine - Class in org.dromara.hutool.http.client.engine.okhttp
OkHttp3客户端引擎封装
OkHttpEngine() - Constructor for class org.dromara.hutool.http.client.engine.okhttp.OkHttpEngine
构造
OkHttpRequestBody - Class in org.dromara.hutool.http.client.engine.okhttp
OkHttp的请求体实现,通过HttpBody转换实现
OkHttpRequestBody(HttpBody) - Constructor for class org.dromara.hutool.http.client.engine.okhttp.OkHttpRequestBody
构造
OkHttpRequestBuilder - Class in org.dromara.hutool.http.client.engine.okhttp
OkHttp请求构建器
OkHttpRequestBuilder() - Constructor for class org.dromara.hutool.http.client.engine.okhttp.OkHttpRequestBuilder
 
OkHttpResponse - Class in org.dromara.hutool.http.client.engine.okhttp
OkHttp3的Response 响应包装
OkHttpResponse(Response, Request) - Constructor for class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
 
openHttp(URL, Proxy) - Static method in class org.dromara.hutool.http.client.engine.jdk.HttpUrlConnectionUtil
初始化http或https请求参数
有些时候https请求会出现com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl的实现,此为sun内部api,按照普通http请求处理
org.dromara.hutool.http - package org.dromara.hutool.http
Hutool-http针对JDK的HttpUrlConnection做一层封装,简化了HTTPS请求、文件上传、Cookie记忆等操作,使Http请求变得无比简单。
org.dromara.hutool.http.auth - package org.dromara.hutool.http.auth
提供HTTP认证相关封装
org.dromara.hutool.http.client - package org.dromara.hutool.http.client
HTTP请求客户端封装,请求过程如下: Server ^ | | v Request Response ^ | | v ClientEngine
org.dromara.hutool.http.client.body - package org.dromara.hutool.http.client.body
请求体封装实现
org.dromara.hutool.http.client.cookie - package org.dromara.hutool.http.client.cookie
自定义Cookie
org.dromara.hutool.http.client.engine - package org.dromara.hutool.http.client.engine
Http客户端引擎实现
org.dromara.hutool.http.client.engine.httpclient4 - package org.dromara.hutool.http.client.engine.httpclient4
Apache HttpClient 4.x实现
文档见:https://hc.apache.org/httpcomponents-client-4.5.x/index.html
org.dromara.hutool.http.client.engine.httpclient5 - package org.dromara.hutool.http.client.engine.httpclient5
Apache HttpClient 5.1.x实现
文档见:https://hc.apache.org/httpcomponents-client-5.1.x/index.html
org.dromara.hutool.http.client.engine.jdk - package org.dromara.hutool.http.client.engine.jdk
基于JDK的HttpUrlConnection封装的HTTP客户端
org.dromara.hutool.http.client.engine.okhttp - package org.dromara.hutool.http.client.engine.okhttp
OKHttp3封装
文档见:https://square.github.io/okhttp/
org.dromara.hutool.http.html - package org.dromara.hutool.http.html
HTML相关工具封装
org.dromara.hutool.http.meta - package org.dromara.hutool.http.meta
Http元数据信息,包括Header枚举、状态码、Http方法、枚举Content-Type等
org.dromara.hutool.http.multipart - package org.dromara.hutool.http.multipart
文件上传封装
org.dromara.hutool.http.proxy - package org.dromara.hutool.http.proxy
HTTP代理相关封装
org.dromara.hutool.http.server - package org.dromara.hutool.http.server
Http服务器封装
org.dromara.hutool.http.server.engine - package org.dromara.hutool.http.server.engine
HTTP服务器引擎包
org.dromara.hutool.http.server.engine.jetty - package org.dromara.hutool.http.server.engine.jetty
Jetty9引擎实现
org.dromara.hutool.http.server.engine.smart - package org.dromara.hutool.http.server.engine.smart
smart-http-server服务器引擎实现
见:https://smartboot.tech/smart-http/
org.dromara.hutool.http.server.engine.sun - package org.dromara.hutool.http.server.engine.sun
HttpServer引擎实现包
org.dromara.hutool.http.server.engine.sun.filter - package org.dromara.hutool.http.server.engine.sun.filter
Filter 实现包装
org.dromara.hutool.http.server.engine.tomcat - package org.dromara.hutool.http.server.engine.tomcat
Tomcat引擎实现
org.dromara.hutool.http.server.engine.undertow - package org.dromara.hutool.http.server.engine.undertow
Undertow引擎实现
org.dromara.hutool.http.server.handler - package org.dromara.hutool.http.server.handler
HTTP服务器请求和响应处理器的统一封装
org.dromara.hutool.http.server.servlet - package org.dromara.hutool.http.server.servlet
Servlet封装,包括Servlet参数获取、文件上传、Response写出等,入口为ServletUtil
org.dromara.hutool.http.ssl - package org.dromara.hutool.http.ssl
SSL封装
org.dromara.hutool.http.useragent - package org.dromara.hutool.http.useragent
User-Agent解析
org.dromara.hutool.http.webservice - package org.dromara.hutool.http.webservice
Webservice客户端封装实现
OS - Class in org.dromara.hutool.http.useragent
系统对象
OS(String, String) - Constructor for class org.dromara.hutool.http.useragent.OS
构造
OS(String, String, String) - Constructor for class org.dromara.hutool.http.useragent.OS
构造
oses - Static variable in class org.dromara.hutool.http.useragent.OS
支持的引擎类型
Other_Version - Static variable in class org.dromara.hutool.http.useragent.Browser
其它版本

P

parse(String) - Static method in class org.dromara.hutool.http.useragent.UserAgentParser
解析User-Agent
parse(String) - Static method in class org.dromara.hutool.http.useragent.UserAgentUtil
解析User-Agent
parseMultipart(UploadSetting) - Method in interface org.dromara.hutool.http.server.handler.ServerRequest
获得multipart/form-data 表单内容
包括文件和普通表单数据
在同一次请求中,此方法只能被执行一次!
parseRequestStream(InputStream, Charset) - Method in class org.dromara.hutool.http.multipart.MultipartFormData
提取上传的文件和表单数据
Platform - Class in org.dromara.hutool.http.useragent
平台对象
Platform(String, String) - Constructor for class org.dromara.hutool.http.useragent.Platform
构造
platforms - Static variable in class org.dromara.hutool.http.useragent.Platform
支持的平台类型
post(String, Map<String, Object>) - Static method in class org.dromara.hutool.http.HttpUtil
发送post请求
post(String, String) - Static method in class org.dromara.hutool.http.HttpUtil
发送post请求
请求体body参数支持两种类型: 1.
post(String, String, int) - Static method in class org.dromara.hutool.http.HttpUtil
发送post请求
请求体body参数支持两种类型: 1.
processStream(MultipartRequestInputStream) - Method in class org.dromara.hutool.http.multipart.UploadFile
处理上传表单流,提取出文件
proxyAuth(String) - Method in interface org.dromara.hutool.http.client.HeaderOperation
验证,简单插入Authorization头
ProxyInfo - Class in org.dromara.hutool.http.proxy
代理信息,提供代理选择器和代理验证
ProxyInfo(String, int) - Constructor for class org.dromara.hutool.http.proxy.ProxyInfo
构造
ProxyInfo(ProxySelector, PasswordAuthentication) - Constructor for class org.dromara.hutool.http.proxy.ProxyInfo
构造
putDefault(boolean) - Method in enum org.dromara.hutool.http.GlobalHeaders
加入默认的头部信息

R

RE_HTML_MARK - Static variable in class org.dromara.hutool.http.html.HtmlUtil
HTML标签正则
RE_SCRIPT - Static variable in class org.dromara.hutool.http.html.HtmlUtil
script标签正则
read() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpInputStream
 
read(byte[], int, int) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpInputStream
 
readBoundary() - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
输入流中读取边界
readByte() - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
读取byte字节流,在末尾抛出异常
readCookieMap(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
将cookie封装到Map里面
readCookieMap(HttpServletRequest) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
将cookie封装到Map里面
readDataHeader(Charset) - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
从流中读取文件头部信息, 如果达到末尾则返回null
readDataHeaderString(Charset) - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
读取数据头信息字符串
readString(Charset) - Method in class org.dromara.hutool.http.multipart.MultipartRequestInputStream
读取字节流,直到下一个boundary
register(String, ConnectionSocketFactory) - Method in class org.dromara.hutool.http.client.engine.httpclient4.ConnectionSocketFactoryRegistryBuilder
注册连接工厂
register(String, Class<? extends InputStream>) - Method in enum org.dromara.hutool.http.GlobalCompressStreamRegister
注册解压器
registerHttp(ConnectionSocketFactory) - Method in class org.dromara.hutool.http.client.engine.httpclient4.ConnectionSocketFactoryRegistryBuilder
注册HTTP协议,使用默认的普通连接工厂
registerHttps(SSLInfo) - Method in class org.dromara.hutool.http.client.engine.httpclient4.ConnectionSocketFactoryRegistryBuilder
注册HTTPS协议
registerPlainHttp() - Method in class org.dromara.hutool.http.client.engine.httpclient4.ConnectionSocketFactoryRegistryBuilder
注册HTTP协议,使用默认的普通(非加密)连接工厂
remove(URI, CookieSpi) - Method in interface org.dromara.hutool.http.client.cookie.CookieStoreSpi
移除指定http url cookie集合
remove(URI, CookieSpi) - Method in class org.dromara.hutool.http.client.cookie.InMemoryCookieStore
 
remove(URI, CookieSpi) - Method in class org.dromara.hutool.http.client.cookie.ThreadLocalCookieStore
 
remove(URI, HttpCookie) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieStore
 
removeAll() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieStore
 
removeAllHtmlAttr(String, String...) - Static method in class org.dromara.hutool.http.html.HtmlUtil
去除指定标签的所有属性
removeCurrent() - Method in class org.dromara.hutool.http.client.cookie.ThreadLocalCookieStore
移除当前线程的Cookie
removeHeader(String) - Method in enum org.dromara.hutool.http.GlobalHeaders
移除一个头信息
removeHeader(HeaderName) - Method in enum org.dromara.hutool.http.GlobalHeaders
移除一个头信息
removeHtmlAttr(String, String...) - Static method in class org.dromara.hutool.http.html.HtmlUtil
去除HTML标签中的属性,如果多个标签有相同属性,都去除
removeHtmlTag(String, String...) - Static method in class org.dromara.hutool.http.html.HtmlUtil
清除指定HTML标签和被标签包围的内容
不区分大小写
removeHtmlTag(String, boolean, String...) - Static method in class org.dromara.hutool.http.html.HtmlUtil
清除指定HTML标签
不区分大小写
removeScriptTag(String) - Static method in class org.dromara.hutool.http.html.HtmlUtil
清除所有script标签,包括内容
Request - Class in org.dromara.hutool.http.client
请求消息
请求消息用于定义请求所需的信息,如请求URL、请求方法、请求头、请求体等
此对象为无状态对象,与具体引擎不相关,因此可以复用。
Request() - Constructor for class org.dromara.hutool.http.client.Request
默认构造
RequestContext - Class in org.dromara.hutool.http.client
请求上下文,用于在多次请求时保存状态信息
非线程安全。
RequestContext(Request) - Constructor for class org.dromara.hutool.http.client.RequestContext
构造
reset() - Method in class org.dromara.hutool.http.client.engine.AbstractClientEngine
重置引擎
reset() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Engine
 
reset() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Engine
 
reset() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkClientEngine
 
reset() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpInputStream
 
reset() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpEngine
 
reset() - Method in class org.dromara.hutool.http.server.engine.AbstractServerEngine
重置引擎
reset() - Method in class org.dromara.hutool.http.server.engine.jetty.JettyEngine
 
reset() - Method in class org.dromara.hutool.http.server.engine.smart.SmartHttpServerEngine
 
reset() - Method in class org.dromara.hutool.http.server.engine.sun.SunHttpServerEngine
 
reset() - Method in class org.dromara.hutool.http.server.engine.tomcat.TomcatEngine
 
reset() - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowEngine
 
reset() - Method in class org.dromara.hutool.http.webservice.SoapClient
重置SOAP客户端,用于客户端复用 重置后需调用serMethod方法重新指定请求方法,并调用setParam方法重新定义参数
ResourceBody - Class in org.dromara.hutool.http.client.body
Resource类型的Http request body,主要发送资源文件中的内容
ResourceBody(HttpResource) - Constructor for class org.dromara.hutool.http.client.body.ResourceBody
构造
Response - Interface in org.dromara.hutool.http.client
响应内容接口,包括响应状态码、HTTP消息头、响应体等信息
ResponseBody - Class in org.dromara.hutool.http.client.body
响应体部分封装
ResponseBody(Response, InputStream) - Constructor for class org.dromara.hutool.http.client.body.ResponseBody
构造,不读取响应体,忽略响应体EOF错误
ResponseBody(Response, InputStream, boolean, boolean) - Constructor for class org.dromara.hutool.http.client.body.ResponseBody
构造
RootHandler - Class in org.dromara.hutool.http.server.handler
默认的处理器,通过解析用户传入的path,找到网页根目录下对应文件后返回
RootHandler(String) - Constructor for class org.dromara.hutool.http.server.handler.RootHandler
构造
RootHandler(File) - Constructor for class org.dromara.hutool.http.server.handler.RootHandler
构造
RootHandler(String, String...) - Constructor for class org.dromara.hutool.http.server.handler.RootHandler
构造
RootHandler(File, String...) - Constructor for class org.dromara.hutool.http.server.handler.RootHandler
构造

S

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服务器引擎
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
设置连接和读取的超时时间
setConnectionPool(ConnectionPool) - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpClientConfig
设置连接池
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
设置Content-Type头,类似于:text/html;charset=utf-8
如果用户传入的信息无charset信息,自动根据charset补充,charset设置见ServerResponse.setCharset(Charset)
setCookieManager(CookieManager) - Method in class org.dromara.hutool.http.client.engine.jdk.JdkCookieManager
自定义CookieManager
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
设置HostnameVerifier,信任所有则使用TrustAnyHostnameVerifier
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
设置证书库
此方法和ServerConfig.setSslContext(SSLContext)互斥
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
设置最大请求(响应)头大小
setMaxPerRoute(int) - Method in class org.dromara.hutool.http.client.ApacheHttpClientConfig
设置每个路由的最大连接数
setMaxRedirects(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
设置SSLContext,可以使用SSLContextBuilder构建
setSSLInfo(SSLInfo) - Method in class org.dromara.hutool.http.client.ClientConfig
设置SSLInfo
只针对HTTPS请求,如果不设置,使用默认的SSLInfo.TRUST_ANY
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: 含义,永不超时。
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
设置X509TrustManager,新人所有则使用TrustAnyTrustManager
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
HTTP请求中SSL相关信息,包括: HostnameVerifier SSLContext X509TrustManager
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
同步
如果为异步状态,则暂时不读取服务器中响应的内容,而是持有Http链接的InputStream

T

then(Consumer<Response>) - Method in interface org.dromara.hutool.http.client.Response
链式处理结果
ThreadLocalCookieStore - Class in org.dromara.hutool.http.client.cookie
线程隔离的Cookie存储。
ThreadLocalCookieStore() - Constructor for class org.dromara.hutool.http.client.cookie.ThreadLocalCookieStore
 
TlsSocketStrategyBuilder - Class in org.dromara.hutool.http.client.engine.httpclient5
TLS Socket 策略构建器
TlsSocketStrategyBuilder() - Constructor for class org.dromara.hutool.http.client.engine.httpclient5.TlsSocketStrategyBuilder
 
tmpUploadPath - Variable in class org.dromara.hutool.http.multipart.UploadSetting
临时文件目录
toBean(ServletRequest, Class<T>, boolean) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
ServletRequest 参数转Bean
toBean(ServletRequest, Class<T>, boolean) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
ServletRequest 参数转Bean
TomcatEngine - Class in org.dromara.hutool.http.server.engine.tomcat
Tomcat引擎实现
TomcatEngine() - Constructor for class org.dromara.hutool.http.server.engine.tomcat.TomcatEngine
构造
TomcatRequest - Class in org.dromara.hutool.http.server.engine.tomcat
Tomcat请求对象包装
TomcatRequest(Request) - Constructor for class org.dromara.hutool.http.server.engine.tomcat.TomcatRequest
构造
TomcatResponse - Class in org.dromara.hutool.http.server.engine.tomcat
Tomcat响应对象包装
TomcatResponse(Response) - Constructor for class org.dromara.hutool.http.server.engine.tomcat.TomcatResponse
构造
toString() - Method in class org.dromara.hutool.http.client.body.MultipartBody
 
toString() - Method in class org.dromara.hutool.http.client.body.ResponseBody
 
toString() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Cookie
 
toString() - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4Response
 
toString() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Cookie
 
toString() - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5Response
 
toString() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpConnection
 
toString() - Method in class org.dromara.hutool.http.client.engine.jdk.JdkHttpResponse
 
toString() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkCookie
 
toString() - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpResponse
 
toString() - Method in class org.dromara.hutool.http.client.Request
 
toString(Response) - Static method in class org.dromara.hutool.http.HttpUtil
打印Response 为可读形式
toString(Request) - Static method in class org.dromara.hutool.http.HttpUtil
打印 Request 为可读形式
toString() - Method in enum org.dromara.hutool.http.meta.ContentType
 
toString(Charset) - Method in enum org.dromara.hutool.http.meta.ContentType
输出Content-Type字符串,附带编码信息
toString() - Method in enum org.dromara.hutool.http.meta.HeaderName
 
toString() - Method in class org.dromara.hutool.http.useragent.UserAgent
 
toString() - Method in class org.dromara.hutool.http.useragent.UserAgentInfo
 
toString(SOAPMessage, boolean) - Static method in class org.dromara.hutool.http.webservice.SoapUtil
SOAPMessage 转为字符串
toString(SOAPMessage, boolean, Charset) - Static method in class org.dromara.hutool.http.webservice.SoapUtil
SOAPMessage 转为字符串
TRUST_ANY - Static variable in class org.dromara.hutool.http.ssl.SSLInfo
信任所有的SSLInfo

U

UndertowEngine - Class in org.dromara.hutool.http.server.engine.undertow
Undertow引擎实现
UndertowEngine() - Constructor for class org.dromara.hutool.http.server.engine.undertow.UndertowEngine
构造
UndertowExchangeBase - Class in org.dromara.hutool.http.server.engine.undertow
Undertow请求对象基类,用于获取原始Undertow请求对象
UndertowExchangeBase(HttpServerExchange) - Constructor for class org.dromara.hutool.http.server.engine.undertow.UndertowExchangeBase
构造
UndertowRequest - Class in org.dromara.hutool.http.server.engine.undertow
Undertow请求对象
UndertowRequest(HttpServerExchange) - Constructor for class org.dromara.hutool.http.server.engine.undertow.UndertowRequest
构造
UndertowResponse - Class in org.dromara.hutool.http.server.engine.undertow
Undertow响应对象
UndertowResponse(HttpServerExchange) - Constructor for class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
构造
unescape(String) - Static method in class org.dromara.hutool.http.html.HtmlUtil
还原被转义的HTML特殊字符
Unknown - Static variable in class org.dromara.hutool.http.useragent.Browser
未知
Unknown - Static variable in class org.dromara.hutool.http.useragent.BrowserEngine
未知
Unknown - Static variable in class org.dromara.hutool.http.useragent.OS
未知
Unknown - Static variable in class org.dromara.hutool.http.useragent.Platform
未知
unRegister(String) - Method in enum org.dromara.hutool.http.GlobalCompressStreamRegister
注销压缩器
unwrapHtmlTag(String, String...) - Static method in class org.dromara.hutool.http.html.HtmlUtil
清除指定HTML标签,不包括内容
不区分大小写
UploadFile - Class in org.dromara.hutool.http.multipart
上传的文件对象
UploadFile(UploadFileHeader, UploadSetting) - Constructor for class org.dromara.hutool.http.multipart.UploadFile
构造
UploadFileHeader - Class in org.dromara.hutool.http.multipart
上传的文件的头部信息
来自Jodd
UploadSetting - Class in org.dromara.hutool.http.multipart
上传文件设定文件
UploadSetting() - Constructor for class org.dromara.hutool.http.multipart.UploadSetting
 
url() - Method in class org.dromara.hutool.http.client.Request
获取请求的URL
url(UrlBuilder) - Method in class org.dromara.hutool.http.client.Request
设置URL
UrlEncodedFormBody - Class in org.dromara.hutool.http.client.body
application/x-www-form-urlencoded 类型请求body封装
UrlEncodedFormBody(Map<String, Object>, Charset) - Constructor for class org.dromara.hutool.http.client.body.UrlEncodedFormBody
构造
urlWithForm(String, Map<String, Object>, Charset, boolean) - Static method in class org.dromara.hutool.http.HttpUtil
将表单数据加到URL中(用于GET表单提交)
表单的键值对会被url编码,但是url中原参数不会被编码
urlWithForm(String, String, Charset, boolean) - Static method in class org.dromara.hutool.http.HttpUtil
将表单数据字符串加到URL中(用于GET表单提交)
urlWithFormUrlEncoded(String, Map<String, Object>, Charset) - Static method in class org.dromara.hutool.http.HttpUtil
将表单数据加到URL中(用于GET表单提交) 表单的键值对会被url编码,但是url中原参数不会被编码 且对form参数进行 FormUrlEncoded ,x-www-form-urlencoded模式,此模式下空格会编码为'+'
UserAgent - Class in org.dromara.hutool.http.useragent
User-Agent信息对象
UserAgent() - Constructor for class org.dromara.hutool.http.useragent.UserAgent
 
UserAgentInfo - Class in org.dromara.hutool.http.useragent
User-agent信息
UserAgentInfo(String, String) - Constructor for class org.dromara.hutool.http.useragent.UserAgentInfo
构造
UserAgentInfo(String, Pattern) - Constructor for class org.dromara.hutool.http.useragent.UserAgentInfo
构造
UserAgentParser - Class in org.dromara.hutool.http.useragent
User-Agent解析器
UserAgentParser() - Constructor for class org.dromara.hutool.http.useragent.UserAgentParser
 
UserAgentUtil - Class in org.dromara.hutool.http.useragent
User-Agent工具类
UserAgentUtil() - Constructor for class org.dromara.hutool.http.useragent.UserAgentUtil
 

V

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.

W

WINDOWS_PHONE - Static variable in class org.dromara.hutool.http.useragent.Platform
Windows Phone
wrapStream(InputStream, String) - Method in enum org.dromara.hutool.http.GlobalCompressStreamRegister
包装原始响应流为指定压缩算法解压流
write(OutputStream) - Method in interface org.dromara.hutool.http.client.body.HttpBody
写出数据,不关闭流
write(OutputStream) - Method in class org.dromara.hutool.http.client.body.MultipartBody
写出Multiparty数据,不关闭流
write(String, Object) - Method in class org.dromara.hutool.http.client.body.MultipartOutputStream
添加Multipart表单的数据项
--分隔符(boundary)[换行] Content-Disposition: form-data; name="参数名"[换行] [换行] 参数值[换行] 或者: --分隔符(boundary)[换行] Content-Disposition: form-data; name="表单名"; filename="文件名"[换行] Content-Type: MIME类型[换行] [换行] 文件的二进制内容[换行]
write(int) - Method in class org.dromara.hutool.http.client.body.MultipartOutputStream
 
write(OutputStream) - Method in class org.dromara.hutool.http.client.body.ResourceBody
 
write(OutputStream) - Method in class org.dromara.hutool.http.client.body.ResponseBody
 
write(OutputStream, boolean, StreamProgress) - Method in class org.dromara.hutool.http.client.body.ResponseBody
将响应内容写出到OutputStream
异步模式下直接读取Http流写出,同步模式下将存储在内存中的响应内容写出
写出后会关闭Http流(异步模式)
write(String) - Method in class org.dromara.hutool.http.client.body.ResponseBody
将响应内容写出到文件
write(File) - Method in class org.dromara.hutool.http.client.body.ResponseBody
将响应内容写出到文件
异步模式下直接读取Http流写出,同步模式下将存储在内存中的响应内容写出
写出后会关闭Http流(异步模式)
write(File, StreamProgress) - Method in class org.dromara.hutool.http.client.body.ResponseBody
将响应内容写出到文件-避免未完成的文件 来自:https://gitee.com/dromara/hutool/pulls/407
此方法原理是先在目标文件同级目录下创建临时文件,下载之,等下载完毕后重命名,避免因下载错误导致的文件不完整。
write(File, String, StreamProgress) - Method in class org.dromara.hutool.http.client.body.ResponseBody
将响应内容写出到文件-避免未完成的文件 来自:https://gitee.com/dromara/hutool/pulls/407
此方法原理是先在目标文件同级目录下创建临时文件,下载之,等下载完毕后重命名,避免因下载错误导致的文件不完整。
write(OutputStream) - Method in class org.dromara.hutool.http.client.body.UrlEncodedFormBody
 
write(String) - Method in class org.dromara.hutool.http.multipart.UploadFile
将上传的文件写入指定的目标文件路径,自动创建文件
写入后原临时文件会被删除
write(File) - Method in class org.dromara.hutool.http.multipart.UploadFile
将上传的文件写入目标文件
写入后原临时文件会被删除
write(InputStream, int) - Method in class org.dromara.hutool.http.server.engine.sun.SunServerResponse
写出数据到客户端
write(byte[]) - Method in class org.dromara.hutool.http.server.engine.undertow.UndertowResponse
 
write(String, String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
写出数据到客户端
write(String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
写出数据到客户端
write(byte[], String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
写出数据到客户端
write(byte[]) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
写出数据到客户端
write(InputStream, String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
返回数据给客户端
write(InputStream, int, String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
返回数据给客户端
write(InputStream) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
写出数据到客户端
write(InputStream, int) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
写出数据到客户端
write(File) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
返回文件给客户端(文件下载)
write(File, String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
返回文件给客户端(文件下载)
write(InputStream, String, String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
返回文件数据给客户端(文件下载)
write(InputStream, int, String, String) - Method in interface org.dromara.hutool.http.server.handler.ServerResponse
返回文件数据给客户端(文件下载)
write(HttpServletResponse, String, String) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
返回数据给客户端
write(HttpServletResponse, File) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
返回文件给客户端
write(HttpServletResponse, InputStream, String, String) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
返回数据给客户端
write(HttpServletResponse, InputStream, String) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
返回数据给客户端
write(HttpServletResponse, InputStream) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
返回数据给客户端
write(HttpServletResponse, InputStream, int) - Static method in class org.dromara.hutool.http.server.servlet.JavaxServletUtil
返回数据给客户端
write(HttpServletResponse, String, String) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
返回数据给客户端
write(HttpServletResponse, File) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
返回文件给客户端
write(HttpServletResponse, InputStream, String, String) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
返回数据给客户端
write(HttpServletResponse, InputStream, String) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
返回数据给客户端
write(HttpServletResponse, InputStream) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
返回数据给客户端
write(HttpServletResponse, InputStream, int) - Static method in class org.dromara.hutool.http.server.servlet.ServletUtil
返回数据给客户端
write(OutputStream) - Method in class org.dromara.hutool.http.webservice.SoapClient
将SOAP消息的XML内容输出到流
writeClose(OutputStream) - Method in interface org.dromara.hutool.http.client.body.HttpBody
写出并关闭OutputStream
writeDirect(File, String, StreamProgress) - Method in class org.dromara.hutool.http.client.body.ResponseBody
将响应内容直接写出到文件,目标为目录则从Content-Disposition中获取文件名
writeTo(OutputStream) - Method in class org.dromara.hutool.http.client.engine.httpclient4.HttpClient4BodyEntity
 
writeTo(OutputStream) - Method in class org.dromara.hutool.http.client.engine.httpclient5.HttpClient5BodyEntity
 
writeTo(BufferedSink) - Method in class org.dromara.hutool.http.client.engine.okhttp.OkHttpRequestBody
 
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links

Copyright © 2024. All rights reserved.