Module bus.http

Class FileCallback

java.lang.Object
org.miaixz.bus.http.plugin.httpz.FileCallback
All Implemented Interfaces:
Callback

public abstract class FileCallback extends Object implements Callback
文件-异步回调
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • FileCallback

      public FileCallback()
    • FileCallback

      public FileCallback(String fileAbsolutePath)
  • Method Details

    • onResponse

      public void onResponse(NewCall call, Response response, String id)
      Description copied from interface: Callback
      请求成功时的回调(带请求标识)

      当请求成功时调用,包含请求标识以区分多个请求。

      Specified by:
      onResponse in interface Callback
      Parameters:
      call - 请求调用者
      response - 响应信息
      id - 请求标识
    • onSuccess

      public void onSuccess(NewCall call, File file, String id)
    • onSuccess

      public void onSuccess(NewCall call, InputStream fileStream, String id)