// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "org-apache-http-cookie-CookieSpecRegistry"))]
__jni_bindgen! {
/// public final class [CookieSpecRegistry](https://developer.android.com/reference/org/apache/http/cookie/CookieSpecRegistry.html)
///
/// Required feature: "org-apache-http-cookie-CookieSpecRegistry"
public final class CookieSpecRegistry ("org/apache/http/cookie/CookieSpecRegistry") extends crate::java::lang::Object {
/// [CookieSpecRegistry](https://developer.android.com/reference/org/apache/http/cookie/CookieSpecRegistry.html#CookieSpecRegistry())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::cookie::CookieSpecRegistry>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/cookie/CookieSpecRegistry", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/cookie/CookieSpecRegistry\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [register](https://developer.android.com/reference/org/apache/http/cookie/CookieSpecRegistry.html#register(java.lang.String,%20org.apache.http.cookie.CookieSpecFactory))
///
/// Required features: "java-lang-String", "org-apache-http-cookie-CookieSpecFactory"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-cookie-CookieSpecFactory")))]
pub fn register<'env>(&'env self, 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::cookie::CookieSpecFactory>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/cookie/CookieSpecRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "register", .descriptor == "(Ljava/lang/String;Lorg/apache/http/cookie/CookieSpecFactory;)V"
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/cookie/CookieSpecRegistry\0", "register\0", "(Ljava/lang/String;Lorg/apache/http/cookie/CookieSpecFactory;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [unregister](https://developer.android.com/reference/org/apache/http/cookie/CookieSpecRegistry.html#unregister(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn unregister<'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/cookie/CookieSpecRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "unregister", .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/cookie/CookieSpecRegistry\0", "unregister\0", "(Ljava/lang/String;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCookieSpec](https://developer.android.com/reference/org/apache/http/cookie/CookieSpecRegistry.html#getCookieSpec(java.lang.String,%20org.apache.http.params.HttpParams))
///
/// Required features: "java-lang-String", "org-apache-http-cookie-CookieSpec", "org-apache-http-params-HttpParams"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-cookie-CookieSpec", feature = "org-apache-http-params-HttpParams")))]
pub fn getCookieSpec_String_HttpParams<'env>(&'env self, 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::params::HttpParams>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::cookie::CookieSpec>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/cookie/CookieSpecRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "getCookieSpec", .descriptor == "(Ljava/lang/String;Lorg/apache/http/params/HttpParams;)Lorg/apache/http/cookie/CookieSpec;"
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/cookie/CookieSpecRegistry\0", "getCookieSpec\0", "(Ljava/lang/String;Lorg/apache/http/params/HttpParams;)Lorg/apache/http/cookie/CookieSpec;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCookieSpec](https://developer.android.com/reference/org/apache/http/cookie/CookieSpecRegistry.html#getCookieSpec(java.lang.String))
///
/// Required features: "java-lang-String", "org-apache-http-cookie-CookieSpec"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-cookie-CookieSpec")))]
pub fn getCookieSpec_String<'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::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::cookie::CookieSpec>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/cookie/CookieSpecRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "getCookieSpec", .descriptor == "(Ljava/lang/String;)Lorg/apache/http/cookie/CookieSpec;"
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/cookie/CookieSpecRegistry\0", "getCookieSpec\0", "(Ljava/lang/String;)Lorg/apache/http/cookie/CookieSpec;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSpecNames](https://developer.android.com/reference/org/apache/http/cookie/CookieSpecRegistry.html#getSpecNames())
///
/// Required features: "java-util-List"
#[cfg(any(feature = "all", all(feature = "java-util-List")))]
pub fn getSpecNames<'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/cookie/CookieSpecRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "getSpecNames", .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/cookie/CookieSpecRegistry\0", "getSpecNames\0", "()Ljava/util/List;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setItems](https://developer.android.com/reference/org/apache/http/cookie/CookieSpecRegistry.html#setItems(java.util.Map))
///
/// Required features: "java-util-Map"
#[cfg(any(feature = "all", all(feature = "java-util-Map")))]
pub fn setItems<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Map>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/cookie/CookieSpecRegistry", java.flags == PUBLIC | SYNCRONIZED, .name == "setItems", .descriptor == "(Ljava/util/Map;)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/cookie/CookieSpecRegistry\0", "setItems\0", "(Ljava/util/Map;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}