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

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

        /// [BasicHttpRequest](https://developer.android.com/reference/org/apache/http/message/BasicHttpRequest.html#BasicHttpRequest(java.lang.String,%20java.lang.String,%20org.apache.http.ProtocolVersion))
        ///
        /// 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_String_String_ProtocolVersion<'env>(__jni_env: &'env __jni_bindgen::Env, 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::java::lang::String>>, arg2: 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::org::apache::http::message::BasicHttpRequest>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/message/BasicHttpRequest", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/ProtocolVersion;)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/BasicHttpRequest\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/ProtocolVersion;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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