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

        /// [ClientContextConfigurer](https://developer.android.com/reference/org/apache/http/client/protocol/ClientContextConfigurer.html#ClientContextConfigurer(org.apache.http.protocol.HttpContext))
        ///
        /// Required features: "org-apache-http-protocol-HttpContext"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-protocol-HttpContext")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::protocol::HttpContext>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::client::protocol::ClientContextConfigurer>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/protocol/ClientContextConfigurer", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Lorg/apache/http/protocol/HttpContext;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/client/protocol/ClientContextConfigurer\0", "<init>\0", "(Lorg/apache/http/protocol/HttpContext;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setCookieSpecRegistry](https://developer.android.com/reference/org/apache/http/client/protocol/ClientContextConfigurer.html#setCookieSpecRegistry(org.apache.http.cookie.CookieSpecRegistry))
        ///
        /// Required features: "org-apache-http-cookie-CookieSpecRegistry"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-cookie-CookieSpecRegistry")))]
        pub fn setCookieSpecRegistry<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::cookie::CookieSpecRegistry>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/protocol/ClientContextConfigurer", java.flags == PUBLIC, .name == "setCookieSpecRegistry", .descriptor == "(Lorg/apache/http/cookie/CookieSpecRegistry;)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/client/protocol/ClientContextConfigurer\0", "setCookieSpecRegistry\0", "(Lorg/apache/http/cookie/CookieSpecRegistry;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [setCookieStore](https://developer.android.com/reference/org/apache/http/client/protocol/ClientContextConfigurer.html#setCookieStore(org.apache.http.client.CookieStore))
        ///
        /// Required features: "org-apache-http-client-CookieStore"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-client-CookieStore")))]
        pub fn setCookieStore<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::client::CookieStore>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/protocol/ClientContextConfigurer", java.flags == PUBLIC, .name == "setCookieStore", .descriptor == "(Lorg/apache/http/client/CookieStore;)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/client/protocol/ClientContextConfigurer\0", "setCookieStore\0", "(Lorg/apache/http/client/CookieStore;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setCredentialsProvider](https://developer.android.com/reference/org/apache/http/client/protocol/ClientContextConfigurer.html#setCredentialsProvider(org.apache.http.client.CredentialsProvider))
        ///
        /// Required features: "org-apache-http-client-CredentialsProvider"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-client-CredentialsProvider")))]
        pub fn setCredentialsProvider<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::client::CredentialsProvider>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/protocol/ClientContextConfigurer", java.flags == PUBLIC, .name == "setCredentialsProvider", .descriptor == "(Lorg/apache/http/client/CredentialsProvider;)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/client/protocol/ClientContextConfigurer\0", "setCredentialsProvider\0", "(Lorg/apache/http/client/CredentialsProvider;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setAuthSchemePref](https://developer.android.com/reference/org/apache/http/client/protocol/ClientContextConfigurer.html#setAuthSchemePref(java.util.List))
        ///
        /// Required features: "java-util-List"
        #[cfg(any(feature = "all", all(feature = "java-util-List")))]
        pub fn setAuthSchemePref<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::List>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/protocol/ClientContextConfigurer", java.flags == PUBLIC, .name == "setAuthSchemePref", .descriptor == "(Ljava/util/List;)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/client/protocol/ClientContextConfigurer\0", "setAuthSchemePref\0", "(Ljava/util/List;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}