Uses of Interface
org.miaixz.bus.http.Callback
Packages that use Callback
Package
Description
An HTTP client for Java applications.
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 Callback in org.miaixz.bus.http
Methods in org.miaixz.bus.http with parameters of type CallbackModifier and TypeMethodDescriptionvoidSchedules the request to be executed at some point in the future.voidExecutes the request asynchronously.static voidSends an asynchronous GET request with a callback.static voidSends an asynchronous POST request with form data and a callback.Stomp.queue(String destination, List<Stomp.Header> headers, Callback<Stomp.Message> callback) Subscribes to a queue with additional headers.Stomp.queue(String destination, Callback<Stomp.Message> callback) Subscribes to a queue.Stomp.setOnConnected(Callback<Stomp> onConnected) Sets the callback for when the connection is successfully established.Stomp.setOnDisconnected(Callback<CoverCall.Close> onDisconnected) Sets the callback for when the connection is disconnected.Stomp.setOnError(Callback<Stomp.Message> onError) Sets the callback for error messages.Stomp.subscribe(String destination, List<Stomp.Header> headers, Callback<Stomp.Message> callback) Subscribes to a destination.Stomp.topic(String destination, List<Stomp.Header> headers, Callback<Stomp.Message> callback) Subscribes to a topic with additional headers.Stomp.topic(String destination, Callback<Stomp.Message> callback) Subscribes to a topic. -
Uses of Callback in org.miaixz.bus.http.plugin.httpv
Methods in org.miaixz.bus.http.plugin.httpv with parameters of type CallbackModifier and TypeMethodDescriptionvoidCoverTasks.Executor.executeOnComplete(CoverHttp<?> task, Callback<CoverResult.State> onComplete, CoverResult.State state, boolean onIo) Executes the completion callback for a task, respecting the global completion listener.booleanCoverTasks.Executor.executeOnException(CoverHttp<?> task, Callback<IOException> onException, IOException error, boolean onIo) Executes the exception callback for a task, respecting the global exception listener.voidCoverTasks.Executor.executeOnResponse(CoverHttp<?> task, Callback<CoverResult> onResponse, CoverResult result, boolean onIo) Executes the response callback for a task, respecting the global response listener.CoverHttp.Async.setOnComplete(Callback<CoverResult.State> onComplete) Sets the callback for when the request is complete (will be called in all cases).CoverHttp.Async.setOnException(Callback<IOException> onException) Sets the callback for exceptions.Downloads.setOnFailure(Callback<Downloads.Failure> onFailure) Sets the callback to be executed when the download fails.CoverHttp.setOnProcess(Callback<Progress> onProcess) Sets a callback to monitor the progress of the request body upload.CoverResult.Body.setOnProcess(Callback<Progress> onProcess) Sets a progress callback for monitoring the download of the response body.ResultBody.setOnProcess(Callback<Progress> onProcess) CoverHttp.Async.setOnResponse(Callback<CoverResult> onResponse) Sets the callback for a successful HTTP response.Downloads.setOnSuccess(Callback<File> onSuccess) Sets the callback to be executed when the download completes successfully.Constructors in org.miaixz.bus.http.plugin.httpv with parameters of type CallbackModifierConstructorDescriptionProgressBody(RequestBody requestBody, Callback<Progress> onProcess, Executor callbackExecutor, long contentLength, long stepBytes) Constructs a new ProgressBody.ProgressStream(InputStream input, Callback<Progress> onProcess, long totalBytes, long stepBytes, long doneBytes, Executor callbackExecutor) Constructs a new ProgressStream. -
Uses of Callback in org.miaixz.bus.http.plugin.httpz
Classes in org.miaixz.bus.http.plugin.httpz that implement CallbackModifier and TypeClassDescriptionclassAn abstractCallbackimplementation for handling responses that should be saved to a file.classAn abstractCallbackimplementation for handling responses where the body is expected to be a text string.Methods in org.miaixz.bus.http.plugin.httpz with parameters of type CallbackModifier and TypeMethodDescriptionBuilds the underlyingNewCallfrom theHttpRequestconfiguration.HttpRequest.createRequest(Callback callback) Creates the finalRequestobject.voidRequestCall.executeAsync(Callback callback) Executes the HTTP request asynchronously.