// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "org-apache-http-message-BasicHttpEntityEnclosingRequest"))]
__jni_bindgen! {
/// public class [BasicHttpEntityEnclosingRequest](https://developer.android.com/reference/org/apache/http/message/BasicHttpEntityEnclosingRequest.html)
///
/// Required feature: "org-apache-http-message-BasicHttpEntityEnclosingRequest"
#[deprecated] public class BasicHttpEntityEnclosingRequest ("org/apache/http/message/BasicHttpEntityEnclosingRequest") extends crate::org::apache::http::message::BasicHttpRequest, implements crate::org::apache::http::HttpEntityEnclosingRequest {
/// [BasicHttpEntityEnclosingRequest](https://developer.android.com/reference/org/apache/http/message/BasicHttpEntityEnclosingRequest.html#BasicHttpEntityEnclosingRequest(java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::message::BasicHttpEntityEnclosingRequest>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/BasicHttpEntityEnclosingRequest", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)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_method("org/apache/http/message/BasicHttpEntityEnclosingRequest\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BasicHttpEntityEnclosingRequest](https://developer.android.com/reference/org/apache/http/message/BasicHttpEntityEnclosingRequest.html#BasicHttpEntityEnclosingRequest(java.lang.String,%20java.lang.String,%20org.apache.http.ProtocolVersion))
///
/// Required features: "java-lang-String", "org-apache-http-ProtocolVersion"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-ProtocolVersion")))]
pub fn new_String_String_ProtocolVersion<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::ProtocolVersion>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::message::BasicHttpEntityEnclosingRequest>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/BasicHttpEntityEnclosingRequest", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/ProtocolVersion;)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_class, __jni_method) = __jni_env.require_class_method("org/apache/http/message/BasicHttpEntityEnclosingRequest\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;Lorg/apache/http/ProtocolVersion;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BasicHttpEntityEnclosingRequest](https://developer.android.com/reference/org/apache/http/message/BasicHttpEntityEnclosingRequest.html#BasicHttpEntityEnclosingRequest(org.apache.http.RequestLine))
///
/// Required features: "org-apache-http-RequestLine"
#[cfg(any(feature = "all", all(feature = "org-apache-http-RequestLine")))]
pub fn new_RequestLine<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::RequestLine>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::message::BasicHttpEntityEnclosingRequest>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/BasicHttpEntityEnclosingRequest", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Lorg/apache/http/RequestLine;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/message/BasicHttpEntityEnclosingRequest\0", "<init>\0", "(Lorg/apache/http/RequestLine;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getEntity](https://developer.android.com/reference/org/apache/http/message/BasicHttpEntityEnclosingRequest.html#getEntity())
///
/// Required features: "org-apache-http-HttpEntity"
#[cfg(any(feature = "all", all(feature = "org-apache-http-HttpEntity")))]
pub fn getEntity<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::HttpEntity>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/BasicHttpEntityEnclosingRequest", java.flags == PUBLIC, .name == "getEntity", .descriptor == "()Lorg/apache/http/HttpEntity;"
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/message/BasicHttpEntityEnclosingRequest\0", "getEntity\0", "()Lorg/apache/http/HttpEntity;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setEntity](https://developer.android.com/reference/org/apache/http/message/BasicHttpEntityEnclosingRequest.html#setEntity(org.apache.http.HttpEntity))
///
/// Required features: "org-apache-http-HttpEntity"
#[cfg(any(feature = "all", all(feature = "org-apache-http-HttpEntity")))]
pub fn setEntity<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::HttpEntity>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/BasicHttpEntityEnclosingRequest", java.flags == PUBLIC, .name == "setEntity", .descriptor == "(Lorg/apache/http/HttpEntity;)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/message/BasicHttpEntityEnclosingRequest\0", "setEntity\0", "(Lorg/apache/http/HttpEntity;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [expectContinue](https://developer.android.com/reference/org/apache/http/message/BasicHttpEntityEnclosingRequest.html#expectContinue())
pub fn expectContinue<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/message/BasicHttpEntityEnclosingRequest", java.flags == PUBLIC, .name == "expectContinue", .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/message/BasicHttpEntityEnclosingRequest\0", "expectContinue\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}