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

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

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

        /// [parseProtocolVersion](https://developer.android.com/reference/org/apache/http/message/BasicLineParser.html#parseProtocolVersion(java.lang.String,%20org.apache.http.message.LineParser))
        ///
        /// Required features: "java-lang-String", "org-apache-http-ProtocolVersion", "org-apache-http-message-LineParser"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-ProtocolVersion", feature = "org-apache-http-message-LineParser")))]
        pub fn parseProtocolVersion_String_LineParser<'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::org::apache::http::message::LineParser>>) -> __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/BasicLineParser", java.flags == PUBLIC | STATIC | FINAL, .name == "parseProtocolVersion", .descriptor == "(Ljava/lang/String;Lorg/apache/http/message/LineParser;)Lorg/apache/http/ProtocolVersion;"
            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/message/BasicLineParser\0", "parseProtocolVersion\0", "(Ljava/lang/String;Lorg/apache/http/message/LineParser;)Lorg/apache/http/ProtocolVersion;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [parseProtocolVersion](https://developer.android.com/reference/org/apache/http/message/BasicLineParser.html#parseProtocolVersion(org.apache.http.util.CharArrayBuffer,%20org.apache.http.message.ParserCursor))
        ///
        /// Required features: "org-apache-http-ProtocolVersion", "org-apache-http-message-ParserCursor", "org-apache-http-util-CharArrayBuffer"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-ProtocolVersion", feature = "org-apache-http-message-ParserCursor", feature = "org-apache-http-util-CharArrayBuffer")))]
        pub fn parseProtocolVersion_CharArrayBuffer_ParserCursor<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::message::ParserCursor>>) -> __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/BasicLineParser", java.flags == PUBLIC, .name == "parseProtocolVersion", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/ProtocolVersion;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/BasicLineParser\0", "parseProtocolVersion\0", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/ProtocolVersion;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [parseRequestLine](https://developer.android.com/reference/org/apache/http/message/BasicLineParser.html#parseRequestLine(java.lang.String,%20org.apache.http.message.LineParser))
        ///
        /// Required features: "java-lang-String", "org-apache-http-RequestLine", "org-apache-http-message-LineParser"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-RequestLine", feature = "org-apache-http-message-LineParser")))]
        pub fn parseRequestLine_String_LineParser<'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::org::apache::http::message::LineParser>>) -> __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/BasicLineParser", java.flags == PUBLIC | STATIC | FINAL, .name == "parseRequestLine", .descriptor == "(Ljava/lang/String;Lorg/apache/http/message/LineParser;)Lorg/apache/http/RequestLine;"
            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/message/BasicLineParser\0", "parseRequestLine\0", "(Ljava/lang/String;Lorg/apache/http/message/LineParser;)Lorg/apache/http/RequestLine;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [parseRequestLine](https://developer.android.com/reference/org/apache/http/message/BasicLineParser.html#parseRequestLine(org.apache.http.util.CharArrayBuffer,%20org.apache.http.message.ParserCursor))
        ///
        /// Required features: "org-apache-http-RequestLine", "org-apache-http-message-ParserCursor", "org-apache-http-util-CharArrayBuffer"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-RequestLine", feature = "org-apache-http-message-ParserCursor", feature = "org-apache-http-util-CharArrayBuffer")))]
        pub fn parseRequestLine_CharArrayBuffer_ParserCursor<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::message::ParserCursor>>) -> __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/BasicLineParser", java.flags == PUBLIC, .name == "parseRequestLine", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/RequestLine;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/BasicLineParser\0", "parseRequestLine\0", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/RequestLine;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [parseStatusLine](https://developer.android.com/reference/org/apache/http/message/BasicLineParser.html#parseStatusLine(java.lang.String,%20org.apache.http.message.LineParser))
        ///
        /// Required features: "java-lang-String", "org-apache-http-StatusLine", "org-apache-http-message-LineParser"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-StatusLine", feature = "org-apache-http-message-LineParser")))]
        pub fn parseStatusLine_String_LineParser<'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::org::apache::http::message::LineParser>>) -> __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/BasicLineParser", java.flags == PUBLIC | STATIC | FINAL, .name == "parseStatusLine", .descriptor == "(Ljava/lang/String;Lorg/apache/http/message/LineParser;)Lorg/apache/http/StatusLine;"
            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/message/BasicLineParser\0", "parseStatusLine\0", "(Ljava/lang/String;Lorg/apache/http/message/LineParser;)Lorg/apache/http/StatusLine;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [parseStatusLine](https://developer.android.com/reference/org/apache/http/message/BasicLineParser.html#parseStatusLine(org.apache.http.util.CharArrayBuffer,%20org.apache.http.message.ParserCursor))
        ///
        /// Required features: "org-apache-http-StatusLine", "org-apache-http-message-ParserCursor", "org-apache-http-util-CharArrayBuffer"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-StatusLine", feature = "org-apache-http-message-ParserCursor", feature = "org-apache-http-util-CharArrayBuffer")))]
        pub fn parseStatusLine_CharArrayBuffer_ParserCursor<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::message::ParserCursor>>) -> __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/BasicLineParser", java.flags == PUBLIC, .name == "parseStatusLine", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/StatusLine;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/BasicLineParser\0", "parseStatusLine\0", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/StatusLine;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [parseHeader](https://developer.android.com/reference/org/apache/http/message/BasicLineParser.html#parseHeader(java.lang.String,%20org.apache.http.message.LineParser))
        ///
        /// Required features: "java-lang-String", "org-apache-http-Header", "org-apache-http-message-LineParser"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-Header", feature = "org-apache-http-message-LineParser")))]
        pub fn parseHeader_String_LineParser<'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::org::apache::http::message::LineParser>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::Header>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/message/BasicLineParser", java.flags == PUBLIC | STATIC | FINAL, .name == "parseHeader", .descriptor == "(Ljava/lang/String;Lorg/apache/http/message/LineParser;)Lorg/apache/http/Header;"
            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/message/BasicLineParser\0", "parseHeader\0", "(Ljava/lang/String;Lorg/apache/http/message/LineParser;)Lorg/apache/http/Header;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// **get** public static final [DEFAULT](https://developer.android.com/reference/org/apache/http/message/BasicLineParser.html#DEFAULT)
        ///
        /// Required feature: "org-apache-http-message-BasicLineParser"
        #[cfg(any(feature = "all", feature = "org-apache-http-message-BasicLineParser"))]
        pub fn DEFAULT<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::message::BasicLineParser>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("org/apache/http/message/BasicLineParser\0", "DEFAULT\0", "Lorg/apache/http/message/BasicLineParser;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }
    }
}