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-conn-params-ConnRouteParams"))]
__jni_bindgen! {
    /// public class [ConnRouteParams](https://developer.android.com/reference/org/apache/http/conn/params/ConnRouteParams.html)
    ///
    /// Required feature: "org-apache-http-conn-params-ConnRouteParams"
    public class ConnRouteParams ("org/apache/http/conn/params/ConnRouteParams") extends crate::java::lang::Object, implements crate::org::apache::http::conn::params::ConnRoutePNames {

        /// [getDefaultProxy](https://developer.android.com/reference/org/apache/http/conn/params/ConnRouteParams.html#getDefaultProxy(org.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 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>> {
            // class.path == "org/apache/http/conn/params/ConnRouteParams", java.flags == PUBLIC | STATIC, .name == "getDefaultProxy", .descriptor == "(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/HttpHost;"
            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())
            }
        }

        /// [setDefaultProxy](https://developer.android.com/reference/org/apache/http/conn/params/ConnRouteParams.html#setDefaultProxy(org.apache.http.params.HttpParams,%20org.apache.http.HttpHost))
        ///
        /// 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 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>> {
            // class.path == "org/apache/http/conn/params/ConnRouteParams", java.flags == PUBLIC | STATIC, .name == "setDefaultProxy", .descriptor == "(Lorg/apache/http/params/HttpParams;Lorg/apache/http/HttpHost;)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_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())
            }
        }

        /// [getForcedRoute](https://developer.android.com/reference/org/apache/http/conn/params/ConnRouteParams.html#getForcedRoute(org.apache.http.params.HttpParams))
        ///
        /// Required features: "org-apache-http-conn-routing-HttpRoute", "org-apache-http-params-HttpParams"
        #[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>> {
            // class.path == "org/apache/http/conn/params/ConnRouteParams", java.flags == PUBLIC | STATIC, .name == "getForcedRoute", .descriptor == "(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/conn/routing/HttpRoute;"
            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())
            }
        }

        /// [setForcedRoute](https://developer.android.com/reference/org/apache/http/conn/params/ConnRouteParams.html#setForcedRoute(org.apache.http.params.HttpParams,%20org.apache.http.conn.routing.HttpRoute))
        ///
        /// Required features: "org-apache-http-conn-routing-HttpRoute", "org-apache-http-params-HttpParams"
        #[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>> {
            // class.path == "org/apache/http/conn/params/ConnRouteParams", java.flags == PUBLIC | STATIC, .name == "setForcedRoute", .descriptor == "(Lorg/apache/http/params/HttpParams;Lorg/apache/http/conn/routing/HttpRoute;)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_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())
            }
        }

        /// [getLocalAddress](https://developer.android.com/reference/org/apache/http/conn/params/ConnRouteParams.html#getLocalAddress(org.apache.http.params.HttpParams))
        ///
        /// Required features: "java-net-InetAddress", "org-apache-http-params-HttpParams"
        #[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>> {
            // class.path == "org/apache/http/conn/params/ConnRouteParams", java.flags == PUBLIC | STATIC, .name == "getLocalAddress", .descriptor == "(Lorg/apache/http/params/HttpParams;)Ljava/net/InetAddress;"
            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())
            }
        }

        /// [setLocalAddress](https://developer.android.com/reference/org/apache/http/conn/params/ConnRouteParams.html#setLocalAddress(org.apache.http.params.HttpParams,%20java.net.InetAddress))
        ///
        /// Required features: "java-net-InetAddress", "org-apache-http-params-HttpParams"
        #[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>> {
            // class.path == "org/apache/http/conn/params/ConnRouteParams", java.flags == PUBLIC | STATIC, .name == "setLocalAddress", .descriptor == "(Lorg/apache/http/params/HttpParams;Ljava/net/InetAddress;)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_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())
            }
        }

        /// **get** public static final [NO_HOST](https://developer.android.com/reference/org/apache/http/conn/params/ConnRouteParams.html#NO_HOST)
        ///
        /// Required feature: "org-apache-http-HttpHost"
        #[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)
            }
        }

        /// **get** public static final [NO_ROUTE](https://developer.android.com/reference/org/apache/http/conn/params/ConnRouteParams.html#NO_ROUTE)
        ///
        /// Required feature: "org-apache-http-conn-routing-HttpRoute"
        #[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)
            }
        }
    }
}