top.jfunc.http.component.apache.DefaultApacheStatusCodeExtractor Maven / Gradle / Ivy
package top.jfunc.http.component.apache;
import org.apache.http.HttpResponse;
import top.jfunc.http.component.StatusCodeExtractor;
import top.jfunc.http.request.HttpRequest;
import java.io.IOException;
/**
* @author xiongshiyan at 2020/1/6 , contact me with email [email protected] or phone 15208384257
*/
public class DefaultApacheStatusCodeExtractor implements StatusCodeExtractor {
@Override
public Integer extract(HttpResponse httpResponse, HttpRequest httpRequest) throws IOException {
return httpResponse.getStatusLine().getStatusCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy