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-auth-AuthSchemeRegistry"))]
__jni_bindgen! {
    /// public final class [AuthSchemeRegistry](https://developer.android.com/reference/org/apache/http/auth/AuthSchemeRegistry.html)
    ///
    /// Required feature: "org-apache-http-auth-AuthSchemeRegistry"
    public final class AuthSchemeRegistry ("org/apache/http/auth/AuthSchemeRegistry") extends crate::java::lang::Object {

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

        /// [register](https://developer.android.com/reference/org/apache/http/auth/AuthSchemeRegistry.html#register(java.lang.String,%20org.apache.http.auth.AuthSchemeFactory))
        ///
        /// Required features: "java-lang-String", "org-apache-http-auth-AuthSchemeFactory"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-auth-AuthSchemeFactory")))]
        pub fn register<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::auth::AuthSchemeFactory>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthSchemeRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "register", .descriptor == "(Ljava/lang/String;Lorg/apache/http/auth/AuthSchemeFactory;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/auth/AuthSchemeRegistry\0", "register\0", "(Ljava/lang/String;Lorg/apache/http/auth/AuthSchemeFactory;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [unregister](https://developer.android.com/reference/org/apache/http/auth/AuthSchemeRegistry.html#unregister(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        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::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthSchemeRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "unregister", .descriptor == "(Ljava/lang/String;)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/auth/AuthSchemeRegistry\0", "unregister\0", "(Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getAuthScheme](https://developer.android.com/reference/org/apache/http/auth/AuthSchemeRegistry.html#getAuthScheme(java.lang.String,%20org.apache.http.params.HttpParams))
        ///
        /// Required features: "java-lang-String", "org-apache-http-auth-AuthScheme", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-auth-AuthScheme", feature = "org-apache-http-params-HttpParams")))]
        pub fn getAuthScheme<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::auth::AuthScheme>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/auth/AuthSchemeRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "getAuthScheme", .descriptor == "(Ljava/lang/String;Lorg/apache/http/params/HttpParams;)Lorg/apache/http/auth/AuthScheme;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/auth/AuthSchemeRegistry\0", "getAuthScheme\0", "(Ljava/lang/String;Lorg/apache/http/params/HttpParams;)Lorg/apache/http/auth/AuthScheme;\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/auth/AuthSchemeRegistry.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/auth/AuthSchemeRegistry", java.flags == PUBLIC | 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/auth/AuthSchemeRegistry\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/auth/AuthSchemeRegistry.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/auth/AuthSchemeRegistry", 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/auth/AuthSchemeRegistry\0", "setItems\0", "(Ljava/util/Map;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}