Uses of Interface
org.miaixz.bus.http.NewCall
Packages that use NewCall
Package
Description
Java应用的HTTP客户端
-
Uses of NewCall in org.miaixz.bus.http
Classes in org.miaixz.bus.http that implement NewCallMethods in org.miaixz.bus.http that return NewCallMethods in org.miaixz.bus.http with parameters of type NewCallModifier and TypeMethodDescriptiondefault voidCallback.onFailure(NewCall call, IOException ex) 当请求由于取消、连接问题或超时而无法执行时调用 因为网络可能在交换期间失败,所以远程服务器可能在失败之前接受了请求default void失败回调信息default voidCallback.onResponse(NewCall call, Response response) 当远程服务器成功返回HTTP响应时调用。回调可以继续使用Response.body读取响应体响应仍然是 活动的直到它的响应体是closed 回调的接收者可以使用另一个线程上的响应体 注意,传输层的成功(接收HTTP响应代码、报头和正文)不一定表示应用程序层的 成功:response可能仍然表示不满意的HTTP响应代码,如404或500default voidCallback.onResponse(NewCall newCall, Response response, String id) 响应回调信息 -
Uses of NewCall in org.miaixz.bus.http.accord
Methods in org.miaixz.bus.http.accord with parameters of type NewCallModifier and TypeMethodDescriptionvoidRealConnection.connect(int connectTimeout, int readTimeout, int writeTimeout, int pingIntervalMillis, boolean connectionRetryEnabled, NewCall call, EventListener eventListener) Constructors in org.miaixz.bus.http.accord with parameters of type NewCallModifierConstructorDescriptionExchange(Transmitter transmitter, NewCall call, EventListener eventListener, org.miaixz.bus.http.accord.ExchangeFinder finder, HttpCodec codec) RouteSelector(Address address, RouteDatabase routeDatabase, NewCall call, EventListener eventListener) Transmitter(Httpd client, NewCall call) -
Uses of NewCall in org.miaixz.bus.http.metric
Methods in org.miaixz.bus.http.metric that return NewCallModifier and TypeMethodDescriptionNewChain.call()实际调用准备执行的请求abstract NewCallInternal.newWebSocketCall(Httpd client, Request request) Methods in org.miaixz.bus.http.metric that return types with arguments of type NewCallModifier and TypeMethodDescriptionDispatcher.queuedCalls()Returns a snapshot of the calls currently awaiting execution.Dispatcher.runningCalls()Returns a snapshot of the calls currently being executed.Methods in org.miaixz.bus.http.metric with parameters of type NewCallModifier and TypeMethodDescriptionvoid在调用完全结束后立即调用。这包括调用方延迟消耗响应体.voidEventListener.callFailed(NewCall call, IOException ioe) 永久失败时调用.void在调用进入队列或由客户端执行时立即调用。在线程或流限制的情况下,这个调用可能在处理请求 开始之前就已经执行了 对于单个NewCall只调用一次。不同路由或重定向的重试将在 单个callStart和EventListener.callEnd(org.miaixz.bus.http.NewCall)/EventListener.callFailed(org.miaixz.bus.http.NewCall, java.io.IOException)对的范围内处理。voidEventListener.connectEnd(NewCall call, InetSocketAddress inetSocketAddress, Proxy proxy, org.miaixz.bus.core.net.Protocol protocol) 在尝试套接字连接后立即调用.voidEventListener.connectFailed(NewCall call, InetSocketAddress inetSocketAddress, Proxy proxy, org.miaixz.bus.core.net.Protocol protocol, IOException ioe) 连接尝试失败时调用。如果有进一步的路由可用并且启用了故障恢复,则此故障不是终端.voidEventListener.connectionAcquired(NewCall call, Connection connection) 为call获取连接后调用.voidEventListener.connectionReleased(NewCall call, Connection connection) 在为call释放连接后调用.voidEventListener.connectStart(NewCall call, InetSocketAddress inetSocketAddress, Proxy proxy) 仅在初始化套接字连接之前调用.为特定的NewCall创建EventListener的实例。 返回的EventListener实例将在call的生命周期中使用 此方法在创建call之后调用。查看# newCall(请求)对实现来说,在这个方法的call实例上发出任何变化操作都是错误的voidEventListener.dnsEnd(NewCall call, String domainName, List<InetAddress> inetAddressList) 在DNS查找后立即调用.void仅在DNS查找之前调用。看到#查找(String)voidEventListener.requestBodyEnd(NewCall call, long byteCount) 在发送请求主体后立即调用 此方法总是在EventListener.requestBodyStart(NewCall)之后调用voidEventListener.requestBodyStart(NewCall call) 仅在发送请求主体之前调用。只有在请求允许并有一个请求体要发送时才会被调用吗.voidEventListener.requestFailed(NewCall call, IOException ioe) voidEventListener.requestHeadersEnd(NewCall call, Request request) 发送请求头后立即调用.voidEventListener.requestHeadersStart(NewCall call) 仅在发送请求头之前调用.voidEventListener.responseBodyEnd(NewCall call, long byteCount) 在接收到响应体并完成读取后立即调用.voidEventListener.responseBodyStart(NewCall call) 仅在接收响应主体之前调用.voidEventListener.responseFailed(NewCall call, IOException ioe) voidEventListener.responseHeadersEnd(NewCall call, Response response) 在接收响应标头后立即调用 这个方法总是在EventListener.responseHeadersStart(org.miaixz.bus.http.NewCall)之后调用voidEventListener.responseHeadersStart(NewCall call) 仅在接收响应标头之前调用.voidEventListener.secureConnectEnd(NewCall call, Handshake handshake) 尝试TLS连接后立即调用.voidEventListener.secureConnectStart(NewCall call) 在启动TLS连接之前调用. -
Uses of NewCall in org.miaixz.bus.http.metric.http
Methods in org.miaixz.bus.http.metric.http that return NewCallConstructors in org.miaixz.bus.http.metric.http with parameters of type NewCallModifierConstructorDescriptionRealInterceptorChain(List<Interceptor> interceptors, Transmitter transmitter, Exchange exchange, int index, Request request, NewCall call, int connectTimeout, int readTimeout, int writeTimeout) -
Uses of NewCall in org.miaixz.bus.http.plugin.httpv
Methods in org.miaixz.bus.http.plugin.httpv that return NewCall -
Uses of NewCall in org.miaixz.bus.http.plugin.httpz
Methods in org.miaixz.bus.http.plugin.httpz that return NewCallMethods in org.miaixz.bus.http.plugin.httpz with parameters of type NewCallModifier and TypeMethodDescriptionvoidvoidFileCallback.onResponse(NewCall call, Response response, String id) voidTextCallback.onResponse(NewCall call, Response response, String id) voidvoidFileCallback.onSuccess(NewCall call, InputStream fileStream, String id) abstract void