java.lang.Object
org.miaixz.bus.http.accord.ConnectInterceptor
- All Implemented Interfaces:
Interceptor
An interceptor that opens a connection to the target server and proceeds to the next interceptor.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Details
-
httpd
The httpd client instance.
-
-
Constructor Details
-
ConnectInterceptor
Constructs a new ConnectInterceptor.- Parameters:
httpd- The Httpd client instance.
-
-
Method Details
-
intercept
Intercepts the request to establish a connection and create an exchange.- Specified by:
interceptin interfaceInterceptor- Parameters:
chain- The interceptor chain.- Returns:
- The response from the server.
- Throws:
IOException- if an I/O error occurs during the connection.
-