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-routing-RouteInfo"))]
__jni_bindgen! {
    /// public interface [RouteInfo](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html)
    ///
    /// Required feature: "org-apache-http-conn-routing-RouteInfo"
    #[deprecated] public interface RouteInfo ("org/apache/http/conn/routing/RouteInfo") extends crate::java::lang::Object {

        /// [getTargetHost](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html#getTargetHost())
        ///
        /// Required features: "org-apache-http-HttpHost"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-HttpHost")))]
        pub fn getTargetHost<'env>(&'env self) -> __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/routing/RouteInfo", java.flags == PUBLIC | ABSTRACT, .name == "getTargetHost", .descriptor == "()Lorg/apache/http/HttpHost;"
            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/routing/RouteInfo\0", "getTargetHost\0", "()Lorg/apache/http/HttpHost;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getLocalAddress](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html#getLocalAddress())
        ///
        /// Required features: "java-net-InetAddress"
        #[cfg(any(feature = "all", all(feature = "java-net-InetAddress")))]
        pub fn getLocalAddress<'env>(&'env self) -> __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/routing/RouteInfo", java.flags == PUBLIC | ABSTRACT, .name == "getLocalAddress", .descriptor == "()Ljava/net/InetAddress;"
            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/routing/RouteInfo\0", "getLocalAddress\0", "()Ljava/net/InetAddress;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getHopCount](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html#getHopCount())
        pub fn getHopCount<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/routing/RouteInfo", java.flags == PUBLIC | ABSTRACT, .name == "getHopCount", .descriptor == "()I"
            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/routing/RouteInfo\0", "getHopCount\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getHopTarget](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html#getHopTarget(int))
        ///
        /// Required features: "org-apache-http-HttpHost"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-HttpHost")))]
        pub fn getHopTarget<'env>(&'env self, arg0: i32) -> __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/routing/RouteInfo", java.flags == PUBLIC | ABSTRACT, .name == "getHopTarget", .descriptor == "(I)Lorg/apache/http/HttpHost;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                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/routing/RouteInfo\0", "getHopTarget\0", "(I)Lorg/apache/http/HttpHost;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getProxyHost](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html#getProxyHost())
        ///
        /// Required features: "org-apache-http-HttpHost"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-HttpHost")))]
        pub fn getProxyHost<'env>(&'env self) -> __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/routing/RouteInfo", java.flags == PUBLIC | ABSTRACT, .name == "getProxyHost", .descriptor == "()Lorg/apache/http/HttpHost;"
            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/routing/RouteInfo\0", "getProxyHost\0", "()Lorg/apache/http/HttpHost;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getTunnelType](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html#getTunnelType())
        ///
        /// Required features: "org-apache-http-conn-routing-RouteInfo_TunnelType"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-conn-routing-RouteInfo_TunnelType")))]
        pub fn getTunnelType<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::routing::RouteInfo_TunnelType>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/routing/RouteInfo", java.flags == PUBLIC | ABSTRACT, .name == "getTunnelType", .descriptor == "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;"
            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/routing/RouteInfo\0", "getTunnelType\0", "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isTunnelled](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html#isTunnelled())
        pub fn isTunnelled<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/routing/RouteInfo", java.flags == PUBLIC | ABSTRACT, .name == "isTunnelled", .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/routing/RouteInfo\0", "isTunnelled\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getLayerType](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html#getLayerType())
        ///
        /// Required features: "org-apache-http-conn-routing-RouteInfo_LayerType"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-conn-routing-RouteInfo_LayerType")))]
        pub fn getLayerType<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::conn::routing::RouteInfo_LayerType>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/routing/RouteInfo", java.flags == PUBLIC | ABSTRACT, .name == "getLayerType", .descriptor == "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;"
            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/routing/RouteInfo\0", "getLayerType\0", "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isLayered](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.html#isLayered())
        pub fn isLayered<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/conn/routing/RouteInfo", java.flags == PUBLIC | ABSTRACT, .name == "isLayered", .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/routing/RouteInfo\0", "isLayered\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isSecure](https://developer.android.com/reference/org/apache/http/conn/routing/RouteInfo.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/routing/RouteInfo", 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/routing/RouteInfo\0", "isSecure\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}