#[cfg(any(feature = "all", feature = "org-apache-http-conn-params-ConnRouteParams"))]
__jni_bindgen! {
public class ConnRouteParams ("org/apache/http/conn/params/ConnRouteParams") extends crate::java::lang::Object, implements crate::org::apache::http::conn::params::ConnRoutePNames {
#[cfg(any(feature = "all", all(feature = "org-apache-http-HttpHost", feature = "org-apache-http-params-HttpParams")))]
pub fn getDefaultProxy<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: 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::HttpHost>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/conn/params/ConnRouteParams\0", "getDefaultProxy\0", "(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/HttpHost;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "org-apache-http-HttpHost", feature = "org-apache-http-params-HttpParams")))]
pub fn setDefaultProxy<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::HttpHost>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/conn/params/ConnRouteParams\0", "setDefaultProxy\0", "(Lorg/apache/http/params/HttpParams;Lorg/apache/http/HttpHost;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "org-apache-http-conn-routing-HttpRoute", feature = "org-apache-http-params-HttpParams")))]
pub fn getForcedRoute<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: 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::conn::routing::HttpRoute>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/conn/params/ConnRouteParams\0", "getForcedRoute\0", "(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/conn/routing/HttpRoute;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "org-apache-http-conn-routing-HttpRoute", feature = "org-apache-http-params-HttpParams")))]
pub fn setForcedRoute<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::conn::routing::HttpRoute>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/conn/params/ConnRouteParams\0", "setForcedRoute\0", "(Lorg/apache/http/params/HttpParams;Lorg/apache/http/conn/routing/HttpRoute;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-net-InetAddress", feature = "org-apache-http-params-HttpParams")))]
pub fn getLocalAddress<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: 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::java::net::InetAddress>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/conn/params/ConnRouteParams\0", "getLocalAddress\0", "(Lorg/apache/http/params/HttpParams;)Ljava/net/InetAddress;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-net-InetAddress", feature = "org-apache-http-params-HttpParams")))]
pub fn setLocalAddress<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::InetAddress>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/conn/params/ConnRouteParams\0", "setLocalAddress\0", "(Lorg/apache/http/params/HttpParams;Ljava/net/InetAddress;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", feature = "org-apache-http-HttpHost"))]
pub fn NO_HOST<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::HttpHost>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("org/apache/http/conn/params/ConnRouteParams\0", "NO_HOST\0", "Lorg/apache/http/HttpHost;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "org-apache-http-conn-routing-HttpRoute"))]
pub fn NO_ROUTE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::routing::HttpRoute>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("org/apache/http/conn/params/ConnRouteParams\0", "NO_ROUTE\0", "Lorg/apache/http/conn/routing/HttpRoute;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}