Uses of Interface
org.miaixz.bus.http.NewCall
Packages that use NewCall
Package
Description
An HTTP client for Java applications.
Provides internal implementation details for the HTTP client, including connection management, streams, and routing.
Provides internal metrics and standards for the HTTP client.
Provides the internal implementation of the HTTP/1.1 and HTTP/2 protocols.
Provides the core implementation classes for the Httpv client, including task management, execution, data conversion,
and WebSocket support.
Provides a fluent, builder-based API (Httpz) for making HTTP requests, simplifying interactions with the core
Httpd client.-
Uses of NewCall in org.miaixz.bus.http
Classes in org.miaixz.bus.http that implement NewCallModifier and TypeClassDescriptionfinal classThe concrete implementation of an HTTP call.Methods in org.miaixz.bus.http that return NewCallModifier and TypeMethodDescriptionNewCall.clone()Creates a new, identical call to this one which can be enqueued or executed even if this call has already been.Prepares therequestto be executed at some point in the future.Creates a new call for the given request.Creates a new call for the given request using the underlyingHttpdclient.Methods in org.miaixz.bus.http with parameters of type NewCallModifier and TypeMethodDescriptiondefault voidCallback.onFailure(NewCall call, IOException ex) Called when the request could not be executed due to cancellation, a connectivity problem, or a timeout.default voidCalled when the request fails, including a request ID to differentiate multiple requests.default voidCallback.onResponse(NewCall call, Response response) Called when the remote server returns an HTTP response.default voidCallback.onResponse(NewCall newCall, Response response, String id) Called when the request is successful, including a request ID to differentiate multiple requests. -
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) Establishes a connection to the target server.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()Returns the actual call that is ready to execute the request.abstract NewCallInternal.newWebSocketCall(Httpd client, Request request) Creates a new WebSocket call.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 TypeMethodDescriptionvoidInvoked immediately after a call has completely ended.voidEventListener.callFailed(NewCall call, IOException ioe) Invoked when a call fails permanently.voidInvoked immediately when a call is enqueued or executed by the client.voidEventListener.connectEnd(NewCall call, InetSocketAddress inetSocketAddress, Proxy proxy, org.miaixz.bus.core.net.Protocol protocol) Invoked immediately after a socket connection was attempted.voidEventListener.connectFailed(NewCall call, InetSocketAddress inetSocketAddress, Proxy proxy, org.miaixz.bus.core.net.Protocol protocol, IOException ioe) Invoked when a connection attempt fails.voidEventListener.connectionAcquired(NewCall call, Connection connection) Invoked after a connection is acquired for acall.voidEventListener.connectionReleased(NewCall call, Connection connection) Invoked after a connection is released for acall.voidEventListener.connectStart(NewCall call, InetSocketAddress inetSocketAddress, Proxy proxy) Invoked just prior to initiating a socket connection.Creates an instance of theEventListenerfor a specificNewCall.voidEventListener.dnsEnd(NewCall call, String domainName, List<InetAddress> inetAddressList) Invoked immediately after a DNS lookup.voidInvoked just prior to a DNS lookup.voidEventListener.requestBodyEnd(NewCall call, long byteCount) Invoked immediately after sending a request body.voidEventListener.requestBodyStart(NewCall call) Invoked just prior to sending a request body.voidEventListener.requestFailed(NewCall call, IOException ioe) Invoked when a request fails to be written.voidEventListener.requestHeadersEnd(NewCall call, Request request) Invoked immediately after sending request headers.voidEventListener.requestHeadersStart(NewCall call) Invoked just prior to sending request headers.voidEventListener.responseBodyEnd(NewCall call, long byteCount) Invoked immediately after receiving a response body and completing reading it.voidEventListener.responseBodyStart(NewCall call) Invoked just prior to receiving a response body.voidEventListener.responseFailed(NewCall call, IOException ioe) Invoked when a response fails to be read.voidEventListener.responseHeadersEnd(NewCall call, Response response) Invoked immediately after receiving response headers.voidEventListener.responseHeadersStart(NewCall call) Invoked just prior to receiving response headers.voidEventListener.secureConnectEnd(NewCall call, Handshake handshake) Invoked immediately after a TLS connection was attempted.voidEventListener.secureConnectStart(NewCall call) Invoked prior to starting a TLS connection. -
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 NewCallModifier and TypeMethodDescriptionprotected NewCallCoverHttp.prepareCall(String method) Prepares the Httpd Call object for execution. -
Uses of NewCall in org.miaixz.bus.http.plugin.httpz
Methods in org.miaixz.bus.http.plugin.httpz that return NewCallModifier and TypeMethodDescriptionBuilds the underlyingNewCallfrom theHttpRequestconfiguration.RequestCall.getNewCall()Methods in org.miaixz.bus.http.plugin.httpz with parameters of type NewCallModifier and TypeMethodDescriptionvoidHandles request failures by logging the error.voidFileCallback.onResponse(NewCall call, Response response, String id) Handles the successful HTTP response.voidTextCallback.onResponse(NewCall call, Response response, String id) Handles the successful HTTP response by consuming the response body as a string and passing it to theTextCallback.onSuccess(NewCall, String, String)method.voidCallback invoked when the response body has been successfully saved to a file.voidFileCallback.onSuccess(NewCall call, InputStream fileStream, String id) Callback invoked when no destination file is specified.abstract voidAbstract callback method invoked when a successful response with a text body is received.