Uses of Class
org.miaixz.bus.http.Httpd.Builder
Packages that use Httpd.Builder
-
Uses of Httpd.Builder in org.miaixz.bus.http
Methods in org.miaixz.bus.http that return Httpd.BuilderModifier and TypeMethodDescriptionHttpd.Builder.addInterceptor(Interceptor interceptor) Httpd.Builder.addNetworkInterceptor(Interceptor interceptor) Httpd.Builder.authenticator(Authenticator authenticator) 设置用于响应来自源服务器的挑战的验证器。使用proxyAuthenticator设置代理服务器的身份验证器.设置用于读写缓存的响应的响应缓存.Httpd.Builder.callTimeout(long timeout, TimeUnit unit) 设置完成调用的默认超时。值0表示没有超时,否则在转换为毫秒时,值必须在1和Integer.MAX_VALUE之间Httpd.Builder.callTimeout(Duration duration) 设置完成调用的默认超时。值0表示没有超时,否则在转换为毫秒时,值必须在1和Integer.MAX_VALUE之间Httpd.Builder.certificatePinner(CertificatePinner certificatePinner) 设置限制哪些证书受信任的证书pinner。默认情况下,HTTPS连接仅 依赖于SSL套接字工厂来建立信任。 固定证书避免了信任证书颁发机构的需要。Httpd.Builder.connectionPool(ConnectionPool connectionPool) 设置用于回收HTTP和HTTPS连接的连接池.Httpd.Builder.connectionSpecs(List<ConnectionSuite> connectionSuites) Httpd.Builder.connectTimeout(long timeout, TimeUnit unit) 设置新连接的默认连接超时。值0表示没有超时,否则在转换为毫秒时,值必须在1和Integer.MAX_VALUE之间Httpd.Builder.connectTimeout(Duration duration) 设置新连接的默认连接超时。值0表示没有超时,否则在转换为毫秒时,值必须在1和Integer.MAX_VALUE之间设置可以接受来自传入HTTP响应的cookie并向传出HTTP请求提供cookie的处理程序.Httpd.Builder.dispatcher(Dispatcher dispatcher) 设置用于设置策略和执行异步请求的调度程序。不能为空.设置用于查找主机名的IP地址的DNS服务.Httpd.Builder.eventListener(EventListener eventListener) 配置单个客户机作用域侦听器,该侦听器将接收此客户机的所有分析事件.Httpd.Builder.eventListenerFactory(EventListener.Factory eventListenerFactory) 配置工厂以提供每个调用范围的侦听器,这些侦听器将接收此客户机的分析事件Httpd.Builder.followRedirects(boolean followRedirects) 此客户端配置为遵循重定向。如果未设置,将遵循重定向.Httpd.Builder.followSslRedirects(boolean followProtocolRedirects) 让这个客户从HTTPS到HTTPS跟踪和从HTTPS到HTTPS.Httpd.Builder.hostnameVerifier(HostnameVerifier hostnameVerifier) 设置用于确认响应证书适用于HTTPS连接请求的主机名的验证程序.Httpd.newBuilder()Httpd.Builder.pingInterval(long interval, TimeUnit unit) 设置此客户端发起的HTTP/2和web套接字ping之间的间隔。使用此命令可自动发送ping帧,直到连接失败或关闭 这将保持连接处于活动状态,并可能检测到连接失败.Httpd.Builder.pingInterval(Duration duration) 设置此客户端发起的HTTP/2和web套接字ping之间的间隔。使用此命令可自动发送ping帧, 直到连接失败或关闭。这将保持连接处于活动状态,并可能检测到连接失败.配置此客户端使用的协议以与远程服务器通信。默认情况下,该客户机将选择最有效的传输方式 退回到更普遍的协议。应用程序应该只调用这个方法来避免特定的兼容性问题,比如在启用HTTP/2时web服务器的行为不正确.设置此客户端创建的连接将使用的HTTP代理。它优先于proxySelector, 后者仅在此代理为空(默认为空)时才被启用。要完全禁用代理使用,请调用proxy(proxy . no_proxy)Httpd.Builder.proxyAuthenticator(Authenticator proxyAuthenticator) 设置用于响应来自代理服务器的挑战的验证器。使用authenticator设置源服务器的身份验证器 果未设置,将尝试no authentication will be attemptedHttpd.Builder.proxySelector(ProxySelector proxySelector) 如果没有显式指定proxy,则设置要使用的代理选择策略。代理选择器可以返回多个代理;在这种情况下, 将依次对它们进行测试,直到建立成功的连接.Httpd.Builder.readTimeout(long timeout, TimeUnit unit) 设置新连接的默认读取超时。值0表示没有超时,否则在转换为毫秒时,值必须在1和Integer.MAX_VALUE之间Httpd.Builder.readTimeout(Duration duration) 设置新连接的默认读取超时。值0表示没有超时,否则在转换为毫秒时,值必须在1和Integer.MAX_VALUE之间Httpd.Builder.retryOnConnectionFailure(boolean retryOnConnectionFailure) 在遇到连接问题时,将此客户端配置为重试或不重试 将此设置为false,以避免在这样做会造成破坏时重试请求 在这种情况下,调用应用程序应该自己恢复连接故障.Httpd.Builder.socketFactory(SocketFactory socketFactory) 设置用于创建连接的套接字工厂。Httpd只使用无参数的SocketFactory.createSocket()方法来创建未连接的套接字。重写这个方法,例如。,允许将套接字绑定到特定的本地地址 如果未设置,将使用system-wide defaultsocket工厂Httpd.Builder.sslSocketFactory(SSLSocketFactory sslSocketFactory) 设置用于保护HTTPS连接的套接字工厂。如果未设置,则使用系统默认值Httpd.Builder.sslSocketFactory(SSLSocketFactory sslSocketFactory, X509TrustManager trustManager) 设置用于保护HTTPS连接的套接字工厂和信任管理器。如果未设置,则使用系统默认值 大多数应用程序不应该调用这个方法,而应该使用系统默认值。这些类包含特殊的优化,如果实现被修饰,这些优化可能会丢失Httpd.Builder.writeTimeout(long timeout, TimeUnit unit) 设置新连接的默认写超时。值0表示没有超时,否则在转换为毫秒时,值必须在1和Integer.MAX_VALUE之间Httpd.Builder.writeTimeout(Duration duration) 设置新连接的默认写超时。值0表示没有超时,否则在转换为毫秒时,值必须在1和Integer.MAX_VALUE之间Methods in org.miaixz.bus.http with parameters of type Httpd.BuilderModifier and TypeMethodDescriptionvoidHttpv.HttpvConfig.config(Httpd.Builder builder) 使用 builder 配置 HttpcConstructors in org.miaixz.bus.http with parameters of type Httpd.Builder -
Uses of Httpd.Builder in org.miaixz.bus.http.plugin.httpz
Methods in org.miaixz.bus.http.plugin.httpz that return Httpd.Builder