#[cfg(any(feature = "all", feature = "org-apache-http-HttpVersion"))]
__jni_bindgen! {
public final class HttpVersion ("org/apache/http/HttpVersion") extends crate::org::apache::http::ProtocolVersion, implements crate::java::io::Serializable {
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::HttpVersion>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/HttpVersion\0", "<init>\0", "(II)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "org-apache-http-ProtocolVersion")))]
pub fn forVersion<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::ProtocolVersion>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/HttpVersion\0", "forVersion\0", "(II)Lorg/apache/http/ProtocolVersion;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub const HTTP : &'static str = "HTTP";
#[cfg(any(feature = "all", feature = "org-apache-http-HttpVersion"))]
pub fn HTTP_0_9<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::HttpVersion>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("org/apache/http/HttpVersion\0", "HTTP_0_9\0", "Lorg/apache/http/HttpVersion;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "org-apache-http-HttpVersion"))]
pub fn HTTP_1_0<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::HttpVersion>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("org/apache/http/HttpVersion\0", "HTTP_1_0\0", "Lorg/apache/http/HttpVersion;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "org-apache-http-HttpVersion"))]
pub fn HTTP_1_1<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::HttpVersion>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("org/apache/http/HttpVersion\0", "HTTP_1_1\0", "Lorg/apache/http/HttpVersion;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}