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

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

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

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

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