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-message-BasicHttpResponse"))]
__jni_bindgen! {
    /// public class [BasicHttpResponse](https://developer.android.com/reference/org/apache/http/message/BasicHttpResponse.html)
    ///
    /// Required feature: "org-apache-http-message-BasicHttpResponse"
    #[deprecated] public class BasicHttpResponse ("org/apache/http/message/BasicHttpResponse") extends crate::org::apache::http::message::AbstractHttpMessage, implements crate::org::apache::http::HttpResponse {

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

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

        /// [BasicHttpResponse](https://developer.android.com/reference/org/apache/http/message/BasicHttpResponse.html#BasicHttpResponse(org.apache.http.ProtocolVersion,%20int,%20java.lang.String))
        ///
        /// Required features: "java-lang-String", "org-apache-http-ProtocolVersion"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-ProtocolVersion")))]
        pub fn new_ProtocolVersion_int_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::ProtocolVersion>>, arg1: i32, arg2: 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::org::apache::http::message::BasicHttpResponse>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/message/BasicHttpResponse", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Lorg/apache/http/ProtocolVersion;ILjava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/message/BasicHttpResponse\0", "<init>\0", "(Lorg/apache/http/ProtocolVersion;ILjava/lang/String;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getProtocolVersion](https://developer.android.com/reference/org/apache/http/message/BasicHttpResponse.html#getProtocolVersion())
        ///
        /// Required features: "org-apache-http-ProtocolVersion"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-ProtocolVersion")))]
        pub fn getProtocolVersion<'env>(&'env self) -> __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/message/BasicHttpResponse", java.flags == PUBLIC, .name == "getProtocolVersion", .descriptor == "()Lorg/apache/http/ProtocolVersion;"
            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/message/BasicHttpResponse\0", "getProtocolVersion\0", "()Lorg/apache/http/ProtocolVersion;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

        /// [setStatusLine](https://developer.android.com/reference/org/apache/http/message/BasicHttpResponse.html#setStatusLine(org.apache.http.ProtocolVersion,%20int,%20java.lang.String))
        ///
        /// Required features: "java-lang-String", "org-apache-http-ProtocolVersion"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-ProtocolVersion")))]
        pub fn setStatusLine_ProtocolVersion_int_String<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::ProtocolVersion>>, arg1: i32, arg2: 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/message/BasicHttpResponse", java.flags == PUBLIC, .name == "setStatusLine", .descriptor == "(Lorg/apache/http/ProtocolVersion;ILjava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.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/message/BasicHttpResponse\0", "setStatusLine\0", "(Lorg/apache/http/ProtocolVersion;ILjava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setStatusCode](https://developer.android.com/reference/org/apache/http/message/BasicHttpResponse.html#setStatusCode(int))
        pub fn setStatusCode<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/message/BasicHttpResponse", java.flags == PUBLIC, .name == "setStatusCode", .descriptor == "(I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/message/BasicHttpResponse\0", "setStatusCode\0", "(I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setReasonPhrase](https://developer.android.com/reference/org/apache/http/message/BasicHttpResponse.html#setReasonPhrase(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setReasonPhrase<'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/message/BasicHttpResponse", java.flags == PUBLIC, .name == "setReasonPhrase", .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/message/BasicHttpResponse\0", "setReasonPhrase\0", "(Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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