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

        /// [getStatusLine](https://developer.android.com/reference/org/apache/http/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\0", "getStatusLine\0", "()Lorg/apache/http/StatusLine;\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/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\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/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\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/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\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/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\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/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\0", "setReasonPhrase\0", "(Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getEntity](https://developer.android.com/reference/org/apache/http/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\0", "getEntity\0", "()Lorg/apache/http/HttpEntity;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setEntity](https://developer.android.com/reference/org/apache/http/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\0", "setEntity\0", "(Lorg/apache/http/HttpEntity;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getLocale](https://developer.android.com/reference/org/apache/http/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\0", "getLocale\0", "()Ljava/util/Locale;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setLocale](https://developer.android.com/reference/org/apache/http/HttpResponse.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/HttpResponse", java.flags == PUBLIC | ABSTRACT, .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/HttpResponse\0", "setLocale\0", "(Ljava/util/Locale;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}