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

        /// [HttpRequestBase](https://developer.android.com/reference/org/apache/http/client/methods/HttpRequestBase.html#HttpRequestBase())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::client::methods::HttpRequestBase>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/methods/HttpRequestBase", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/client/methods/HttpRequestBase\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [getProtocolVersion](https://developer.android.com/reference/org/apache/http/client/methods/HttpRequestBase.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/client/methods/HttpRequestBase", 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/client/methods/HttpRequestBase\0", "getProtocolVersion\0", "()Lorg/apache/http/ProtocolVersion;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

        /// [abort](https://developer.android.com/reference/org/apache/http/client/methods/HttpRequestBase.html#abort())
        pub fn abort<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/methods/HttpRequestBase", java.flags == PUBLIC, .name == "abort", .descriptor == "()V"
            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/client/methods/HttpRequestBase\0", "abort\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isAborted](https://developer.android.com/reference/org/apache/http/client/methods/HttpRequestBase.html#isAborted())
        pub fn isAborted<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/methods/HttpRequestBase", java.flags == PUBLIC, .name == "isAborted", .descriptor == "()Z"
            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/client/methods/HttpRequestBase\0", "isAborted\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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