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

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

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

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

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

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