jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "org-apache-http-conn-scheme-SchemeRegistry"))]
__jni_bindgen! {
    /// public final class [SchemeRegistry](https://developer.android.com/reference/org/apache/http/conn/scheme/SchemeRegistry.html)
    ///
    /// Required feature: "org-apache-http-conn-scheme-SchemeRegistry"
    public final class SchemeRegistry ("org/apache/http/conn/scheme/SchemeRegistry") extends crate::java::lang::Object {

        /// [SchemeRegistry](https://developer.android.com/reference/org/apache/http/conn/scheme/SchemeRegistry.html#SchemeRegistry())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::conn::scheme::SchemeRegistry>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/scheme/SchemeRegistry", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/scheme/SchemeRegistry\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getScheme](https://developer.android.com/reference/org/apache/http/conn/scheme/SchemeRegistry.html#getScheme(java.lang.String))
        ///
        /// Required features: "java-lang-String", "org-apache-http-conn-scheme-Scheme"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-conn-scheme-Scheme")))]
        pub fn getScheme_String<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::scheme::Scheme>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/scheme/SchemeRegistry", java.flags == PUBLIC | FINAL | SYNCRONIZED, .name == "getScheme", .descriptor == "(Ljava/lang/String;)Lorg/apache/http/conn/scheme/Scheme;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/scheme/SchemeRegistry\0", "getScheme\0", "(Ljava/lang/String;)Lorg/apache/http/conn/scheme/Scheme;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getScheme](https://developer.android.com/reference/org/apache/http/conn/scheme/SchemeRegistry.html#getScheme(org.apache.http.HttpHost))
        ///
        /// Required features: "org-apache-http-HttpHost", "org-apache-http-conn-scheme-Scheme"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-HttpHost", feature = "org-apache-http-conn-scheme-Scheme")))]
        pub fn getScheme_HttpHost<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::HttpHost>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::scheme::Scheme>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/scheme/SchemeRegistry", java.flags == PUBLIC | FINAL | SYNCRONIZED, .name == "getScheme", .descriptor == "(Lorg/apache/http/HttpHost;)Lorg/apache/http/conn/scheme/Scheme;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/scheme/SchemeRegistry\0", "getScheme\0", "(Lorg/apache/http/HttpHost;)Lorg/apache/http/conn/scheme/Scheme;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [get](https://developer.android.com/reference/org/apache/http/conn/scheme/SchemeRegistry.html#get(java.lang.String))
        ///
        /// Required features: "java-lang-String", "org-apache-http-conn-scheme-Scheme"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-conn-scheme-Scheme")))]
        pub fn get<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::scheme::Scheme>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/scheme/SchemeRegistry", java.flags == PUBLIC | FINAL | SYNCRONIZED, .name == "get", .descriptor == "(Ljava/lang/String;)Lorg/apache/http/conn/scheme/Scheme;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/scheme/SchemeRegistry\0", "get\0", "(Ljava/lang/String;)Lorg/apache/http/conn/scheme/Scheme;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [register](https://developer.android.com/reference/org/apache/http/conn/scheme/SchemeRegistry.html#register(org.apache.http.conn.scheme.Scheme))
        ///
        /// Required features: "org-apache-http-conn-scheme-Scheme"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-conn-scheme-Scheme")))]
        pub fn register<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::conn::scheme::Scheme>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::scheme::Scheme>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/scheme/SchemeRegistry", java.flags == PUBLIC | FINAL | SYNCRONIZED, .name == "register", .descriptor == "(Lorg/apache/http/conn/scheme/Scheme;)Lorg/apache/http/conn/scheme/Scheme;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/scheme/SchemeRegistry\0", "register\0", "(Lorg/apache/http/conn/scheme/Scheme;)Lorg/apache/http/conn/scheme/Scheme;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [unregister](https://developer.android.com/reference/org/apache/http/conn/scheme/SchemeRegistry.html#unregister(java.lang.String))
        ///
        /// Required features: "java-lang-String", "org-apache-http-conn-scheme-Scheme"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-conn-scheme-Scheme")))]
        pub fn unregister<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::scheme::Scheme>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/scheme/SchemeRegistry", java.flags == PUBLIC | FINAL | SYNCRONIZED, .name == "unregister", .descriptor == "(Ljava/lang/String;)Lorg/apache/http/conn/scheme/Scheme;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/scheme/SchemeRegistry\0", "unregister\0", "(Ljava/lang/String;)Lorg/apache/http/conn/scheme/Scheme;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getSchemeNames](https://developer.android.com/reference/org/apache/http/conn/scheme/SchemeRegistry.html#getSchemeNames())
        ///
        /// Required features: "java-util-List"
        #[cfg(any(feature = "all", all(feature = "java-util-List")))]
        pub fn getSchemeNames<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::List>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/scheme/SchemeRegistry", java.flags == PUBLIC | FINAL | SYNCRONIZED, .name == "getSchemeNames", .descriptor == "()Ljava/util/List;"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/scheme/SchemeRegistry\0", "getSchemeNames\0", "()Ljava/util/List;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setItems](https://developer.android.com/reference/org/apache/http/conn/scheme/SchemeRegistry.html#setItems(java.util.Map))
        ///
        /// Required features: "java-util-Map"
        #[cfg(any(feature = "all", all(feature = "java-util-Map")))]
        pub fn setItems<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Map>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/scheme/SchemeRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "setItems", .descriptor == "(Ljava/util/Map;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/conn/scheme/SchemeRegistry\0", "setItems\0", "(Ljava/util/Map;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}