java.lang.Object
org.miaixz.bus.http.plugin.httpz.FileInterceptor
- All Implemented Interfaces:
Interceptor,ProgressListener
请求参数-文件处理
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription网络请求拦截abstract voidupdateProgress(long downloadLenth, long totalLength, boolean isFinish) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.miaixz.bus.http.metric.Interceptor
instructions
-
Constructor Details
-
FileInterceptor
public FileInterceptor()
-
-
Method Details
-
intercept
Description copied from interface:Interceptor网络请求拦截- Specified by:
interceptin interfaceInterceptor- Parameters:
chain- 网络调用链- Returns:
Response- Throws:
IOException- 异常
-
updateProgress
public abstract void updateProgress(long downloadLenth, long totalLength, boolean isFinish) - Specified by:
updateProgressin interfaceProgressListener
-