// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "org-apache-http-conn-ManagedClientConnection"))]
__jni_bindgen! {
/// public interface [ManagedClientConnection](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html)
///
/// Required feature: "org-apache-http-conn-ManagedClientConnection"
#[deprecated] public interface ManagedClientConnection ("org/apache/http/conn/ManagedClientConnection") extends crate::java::lang::Object, implements crate::org::apache::http::HttpClientConnection, crate::org::apache::http::HttpInetConnection, crate::org::apache::http::conn::ConnectionReleaseTrigger {
/// [isSecure](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#isSecure())
pub fn isSecure<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "isSecure", .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/conn/ManagedClientConnection\0", "isSecure\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getRoute](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#getRoute())
///
/// Required features: "org-apache-http-conn-routing-HttpRoute"
#[cfg(any(feature = "all", all(feature = "org-apache-http-conn-routing-HttpRoute")))]
pub fn getRoute<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::routing::HttpRoute>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "getRoute", .descriptor == "()Lorg/apache/http/conn/routing/HttpRoute;"
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/conn/ManagedClientConnection\0", "getRoute\0", "()Lorg/apache/http/conn/routing/HttpRoute;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSSLSession](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#getSSLSession())
///
/// Required features: "javax-net-ssl-SSLSession"
#[cfg(any(feature = "all", all(feature = "javax-net-ssl-SSLSession")))]
pub fn getSSLSession<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::javax::net::ssl::SSLSession>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "getSSLSession", .descriptor == "()Ljavax/net/ssl/SSLSession;"
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/conn/ManagedClientConnection\0", "getSSLSession\0", "()Ljavax/net/ssl/SSLSession;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [open](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#open(org.apache.http.conn.routing.HttpRoute,%20org.apache.http.protocol.HttpContext,%20org.apache.http.params.HttpParams))
///
/// Required features: "org-apache-http-conn-routing-HttpRoute", "org-apache-http-params-HttpParams", "org-apache-http-protocol-HttpContext"
#[cfg(any(feature = "all", all(feature = "org-apache-http-conn-routing-HttpRoute", feature = "org-apache-http-params-HttpParams", feature = "org-apache-http-protocol-HttpContext")))]
pub fn open<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::conn::routing::HttpRoute>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::protocol::HttpContext>>, arg2: 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::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "open", .descriptor == "(Lorg/apache/http/conn/routing/HttpRoute;Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.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/conn/ManagedClientConnection\0", "open\0", "(Lorg/apache/http/conn/routing/HttpRoute;Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [tunnelTarget](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#tunnelTarget(boolean,%20org.apache.http.params.HttpParams))
///
/// Required features: "org-apache-http-params-HttpParams"
#[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
pub fn tunnelTarget<'env>(&'env self, arg0: bool, 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::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "tunnelTarget", .descriptor == "(ZLorg/apache/http/params/HttpParams;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/conn/ManagedClientConnection\0", "tunnelTarget\0", "(ZLorg/apache/http/params/HttpParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [tunnelProxy](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#tunnelProxy(org.apache.http.HttpHost,%20boolean,%20org.apache.http.params.HttpParams))
///
/// Required features: "org-apache-http-HttpHost", "org-apache-http-params-HttpParams"
#[cfg(any(feature = "all", all(feature = "org-apache-http-HttpHost", feature = "org-apache-http-params-HttpParams")))]
pub fn tunnelProxy<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::HttpHost>>, arg1: bool, arg2: 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::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "tunnelProxy", .descriptor == "(Lorg/apache/http/HttpHost;ZLorg/apache/http/params/HttpParams;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.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/conn/ManagedClientConnection\0", "tunnelProxy\0", "(Lorg/apache/http/HttpHost;ZLorg/apache/http/params/HttpParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [layerProtocol](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#layerProtocol(org.apache.http.protocol.HttpContext,%20org.apache.http.params.HttpParams))
///
/// Required features: "org-apache-http-params-HttpParams", "org-apache-http-protocol-HttpContext"
#[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams", feature = "org-apache-http-protocol-HttpContext")))]
pub fn layerProtocol<'env>(&'env self, 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::params::HttpParams>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "layerProtocol", .descriptor == "(Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)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/conn/ManagedClientConnection\0", "layerProtocol\0", "(Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [markReusable](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#markReusable())
pub fn markReusable<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "markReusable", .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/conn/ManagedClientConnection\0", "markReusable\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [unmarkReusable](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#unmarkReusable())
pub fn unmarkReusable<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "unmarkReusable", .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/conn/ManagedClientConnection\0", "unmarkReusable\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isMarkedReusable](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#isMarkedReusable())
pub fn isMarkedReusable<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "isMarkedReusable", .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/conn/ManagedClientConnection\0", "isMarkedReusable\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setState](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#setState(java.lang.Object))
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn setState<'env>(&'env self, arg0: 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/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "setState", .descriptor == "(Ljava/lang/Object;)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/conn/ManagedClientConnection\0", "setState\0", "(Ljava/lang/Object;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getState](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#getState())
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn getState<'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/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "getState", .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/conn/ManagedClientConnection\0", "getState\0", "()Ljava/lang/Object;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setIdleDuration](https://developer.android.com/reference/org/apache/http/conn/ManagedClientConnection.html#setIdleDuration(long,%20java.util.concurrent.TimeUnit))
///
/// Required features: "java-util-concurrent-TimeUnit"
#[cfg(any(feature = "all", all(feature = "java-util-concurrent-TimeUnit")))]
pub fn setIdleDuration<'env>(&'env self, arg0: i64, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::TimeUnit>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/conn/ManagedClientConnection", java.flags == PUBLIC | ABSTRACT, .name == "setIdleDuration", .descriptor == "(JLjava/util/concurrent/TimeUnit;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/conn/ManagedClientConnection\0", "setIdleDuration\0", "(JLjava/util/concurrent/TimeUnit;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}