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

        /// [getHttpElementCharset](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#getHttpElementCharset(org.apache.http.params.HttpParams))
        ///
        /// Required features: "java-lang-String", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-params-HttpParams")))]
        pub fn getHttpElementCharset<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: 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::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "getHttpElementCharset", .descriptor == "(Lorg/apache/http/params/HttpParams;)Ljava/lang/String;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "getHttpElementCharset\0", "(Lorg/apache/http/params/HttpParams;)Ljava/lang/String;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setHttpElementCharset](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#setHttpElementCharset(org.apache.http.params.HttpParams,%20java.lang.String))
        ///
        /// Required features: "java-lang-String", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-params-HttpParams")))]
        pub fn setHttpElementCharset<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: 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/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "setHttpElementCharset", .descriptor == "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "setHttpElementCharset\0", "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getContentCharset](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#getContentCharset(org.apache.http.params.HttpParams))
        ///
        /// Required features: "java-lang-String", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-params-HttpParams")))]
        pub fn getContentCharset<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: 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::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "getContentCharset", .descriptor == "(Lorg/apache/http/params/HttpParams;)Ljava/lang/String;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "getContentCharset\0", "(Lorg/apache/http/params/HttpParams;)Ljava/lang/String;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setContentCharset](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#setContentCharset(org.apache.http.params.HttpParams,%20java.lang.String))
        ///
        /// Required features: "java-lang-String", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-params-HttpParams")))]
        pub fn setContentCharset<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: 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/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "setContentCharset", .descriptor == "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "setContentCharset\0", "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getVersion](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#getVersion(org.apache.http.params.HttpParams))
        ///
        /// Required features: "org-apache-http-ProtocolVersion", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-ProtocolVersion", feature = "org-apache-http-params-HttpParams")))]
        pub fn getVersion<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: 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::ProtocolVersion>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "getVersion", .descriptor == "(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/ProtocolVersion;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "getVersion\0", "(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/ProtocolVersion;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setVersion](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#setVersion(org.apache.http.params.HttpParams,%20org.apache.http.ProtocolVersion))
        ///
        /// Required features: "org-apache-http-ProtocolVersion", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-ProtocolVersion", feature = "org-apache-http-params-HttpParams")))]
        pub fn setVersion<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::ProtocolVersion>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "setVersion", .descriptor == "(Lorg/apache/http/params/HttpParams;Lorg/apache/http/ProtocolVersion;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "setVersion\0", "(Lorg/apache/http/params/HttpParams;Lorg/apache/http/ProtocolVersion;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getUserAgent](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#getUserAgent(org.apache.http.params.HttpParams))
        ///
        /// Required features: "java-lang-String", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-params-HttpParams")))]
        pub fn getUserAgent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: 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::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "getUserAgent", .descriptor == "(Lorg/apache/http/params/HttpParams;)Ljava/lang/String;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "getUserAgent\0", "(Lorg/apache/http/params/HttpParams;)Ljava/lang/String;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setUserAgent](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#setUserAgent(org.apache.http.params.HttpParams,%20java.lang.String))
        ///
        /// Required features: "java-lang-String", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-params-HttpParams")))]
        pub fn setUserAgent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: 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/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "setUserAgent", .descriptor == "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "setUserAgent\0", "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [useExpectContinue](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#useExpectContinue(org.apache.http.params.HttpParams))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn useExpectContinue<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "useExpectContinue", .descriptor == "(Lorg/apache/http/params/HttpParams;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "useExpectContinue\0", "(Lorg/apache/http/params/HttpParams;)Z\0");
                __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setUseExpectContinue](https://developer.android.com/reference/org/apache/http/params/HttpProtocolParams.html#setUseExpectContinue(org.apache.http.params.HttpParams,%20boolean))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn setUseExpectContinue<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/params/HttpProtocolParams", java.flags == PUBLIC | STATIC, .name == "setUseExpectContinue", .descriptor == "(Lorg/apache/http/params/HttpParams;Z)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/params/HttpProtocolParams\0", "setUseExpectContinue\0", "(Lorg/apache/http/params/HttpParams;Z)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}