// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "org-apache-http-protocol-DefaultedHttpContext"))]
__jni_bindgen! {
/// public final class [DefaultedHttpContext](https://developer.android.com/reference/org/apache/http/protocol/DefaultedHttpContext.html)
///
/// Required feature: "org-apache-http-protocol-DefaultedHttpContext"
public final class DefaultedHttpContext ("org/apache/http/protocol/DefaultedHttpContext") extends crate::java::lang::Object, implements crate::org::apache::http::protocol::HttpContext {
/// [DefaultedHttpContext](https://developer.android.com/reference/org/apache/http/protocol/DefaultedHttpContext.html#DefaultedHttpContext(org.apache.http.protocol.HttpContext,%20org.apache.http.protocol.HttpContext))
///
/// Required features: "org-apache-http-protocol-HttpContext"
#[cfg(any(feature = "all", all(feature = "org-apache-http-protocol-HttpContext")))]
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::protocol::HttpContext>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::protocol::HttpContext>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::protocol::DefaultedHttpContext>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/DefaultedHttpContext", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/protocol/HttpContext;)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/protocol/DefaultedHttpContext\0", "<init>\0", "(Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/protocol/HttpContext;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getAttribute](https://developer.android.com/reference/org/apache/http/protocol/DefaultedHttpContext.html#getAttribute(java.lang.String))
///
/// Required features: "java-lang-Object", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-Object", feature = "java-lang-String")))]
pub fn getAttribute<'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::java::lang::Object>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/DefaultedHttpContext", java.flags == PUBLIC, .name == "getAttribute", .descriptor == "(Ljava/lang/String;)Ljava/lang/Object;"
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/protocol/DefaultedHttpContext\0", "getAttribute\0", "(Ljava/lang/String;)Ljava/lang/Object;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [removeAttribute](https://developer.android.com/reference/org/apache/http/protocol/DefaultedHttpContext.html#removeAttribute(java.lang.String))
///
/// Required features: "java-lang-Object", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-Object", feature = "java-lang-String")))]
pub fn removeAttribute<'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::java::lang::Object>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/DefaultedHttpContext", java.flags == PUBLIC, .name == "removeAttribute", .descriptor == "(Ljava/lang/String;)Ljava/lang/Object;"
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/protocol/DefaultedHttpContext\0", "removeAttribute\0", "(Ljava/lang/String;)Ljava/lang/Object;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setAttribute](https://developer.android.com/reference/org/apache/http/protocol/DefaultedHttpContext.html#setAttribute(java.lang.String,%20java.lang.Object))
///
/// Required features: "java-lang-Object", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-Object", feature = "java-lang-String")))]
pub fn setAttribute<'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::java::lang::Object>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/DefaultedHttpContext", java.flags == PUBLIC, .name == "setAttribute", .descriptor == "(Ljava/lang/String;Ljava/lang/Object;)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/protocol/DefaultedHttpContext\0", "setAttribute\0", "(Ljava/lang/String;Ljava/lang/Object;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDefaults](https://developer.android.com/reference/org/apache/http/protocol/DefaultedHttpContext.html#getDefaults())
///
/// Required features: "org-apache-http-protocol-HttpContext"
#[cfg(any(feature = "all", all(feature = "org-apache-http-protocol-HttpContext")))]
pub fn getDefaults<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::protocol::HttpContext>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/DefaultedHttpContext", java.flags == PUBLIC, .name == "getDefaults", .descriptor == "()Lorg/apache/http/protocol/HttpContext;"
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/protocol/DefaultedHttpContext\0", "getDefaults\0", "()Lorg/apache/http/protocol/HttpContext;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}