// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "org-apache-http-protocol-HttpService"))]
__jni_bindgen! {
/// public class [HttpService](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html)
///
/// Required feature: "org-apache-http-protocol-HttpService"
#[deprecated] public class HttpService ("org/apache/http/protocol/HttpService") extends crate::java::lang::Object {
/// [HttpService](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html#HttpService(org.apache.http.protocol.HttpProcessor,%20org.apache.http.ConnectionReuseStrategy,%20org.apache.http.HttpResponseFactory))
///
/// Required features: "org-apache-http-ConnectionReuseStrategy", "org-apache-http-HttpResponseFactory", "org-apache-http-protocol-HttpProcessor"
#[cfg(any(feature = "all", all(feature = "org-apache-http-ConnectionReuseStrategy", feature = "org-apache-http-HttpResponseFactory", feature = "org-apache-http-protocol-HttpProcessor")))]
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::protocol::HttpProcessor>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::ConnectionReuseStrategy>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::HttpResponseFactory>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::protocol::HttpService>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/HttpService", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;)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/protocol/HttpService\0", "<init>\0", "(Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [setHttpProcessor](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html#setHttpProcessor(org.apache.http.protocol.HttpProcessor))
///
/// Required features: "org-apache-http-protocol-HttpProcessor"
#[cfg(any(feature = "all", all(feature = "org-apache-http-protocol-HttpProcessor")))]
pub fn setHttpProcessor<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::protocol::HttpProcessor>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/HttpService", java.flags == PUBLIC, .name == "setHttpProcessor", .descriptor == "(Lorg/apache/http/protocol/HttpProcessor;)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/protocol/HttpService\0", "setHttpProcessor\0", "(Lorg/apache/http/protocol/HttpProcessor;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setConnReuseStrategy](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html#setConnReuseStrategy(org.apache.http.ConnectionReuseStrategy))
///
/// Required features: "org-apache-http-ConnectionReuseStrategy"
#[cfg(any(feature = "all", all(feature = "org-apache-http-ConnectionReuseStrategy")))]
pub fn setConnReuseStrategy<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::ConnectionReuseStrategy>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/HttpService", java.flags == PUBLIC, .name == "setConnReuseStrategy", .descriptor == "(Lorg/apache/http/ConnectionReuseStrategy;)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/protocol/HttpService\0", "setConnReuseStrategy\0", "(Lorg/apache/http/ConnectionReuseStrategy;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setResponseFactory](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html#setResponseFactory(org.apache.http.HttpResponseFactory))
///
/// Required features: "org-apache-http-HttpResponseFactory"
#[cfg(any(feature = "all", all(feature = "org-apache-http-HttpResponseFactory")))]
pub fn setResponseFactory<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::HttpResponseFactory>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/HttpService", java.flags == PUBLIC, .name == "setResponseFactory", .descriptor == "(Lorg/apache/http/HttpResponseFactory;)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/protocol/HttpService\0", "setResponseFactory\0", "(Lorg/apache/http/HttpResponseFactory;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setHandlerResolver](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html#setHandlerResolver(org.apache.http.protocol.HttpRequestHandlerResolver))
///
/// Required features: "org-apache-http-protocol-HttpRequestHandlerResolver"
#[cfg(any(feature = "all", all(feature = "org-apache-http-protocol-HttpRequestHandlerResolver")))]
pub fn setHandlerResolver<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::protocol::HttpRequestHandlerResolver>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/HttpService", java.flags == PUBLIC, .name == "setHandlerResolver", .descriptor == "(Lorg/apache/http/protocol/HttpRequestHandlerResolver;)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/protocol/HttpService\0", "setHandlerResolver\0", "(Lorg/apache/http/protocol/HttpRequestHandlerResolver;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setExpectationVerifier](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html#setExpectationVerifier(org.apache.http.protocol.HttpExpectationVerifier))
///
/// Required features: "org-apache-http-protocol-HttpExpectationVerifier"
#[cfg(any(feature = "all", all(feature = "org-apache-http-protocol-HttpExpectationVerifier")))]
pub fn setExpectationVerifier<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::protocol::HttpExpectationVerifier>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/HttpService", java.flags == PUBLIC, .name == "setExpectationVerifier", .descriptor == "(Lorg/apache/http/protocol/HttpExpectationVerifier;)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/protocol/HttpService\0", "setExpectationVerifier\0", "(Lorg/apache/http/protocol/HttpExpectationVerifier;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getParams](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html#getParams())
///
/// Required features: "org-apache-http-params-HttpParams"
#[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
pub fn getParams<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::params::HttpParams>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/HttpService", java.flags == PUBLIC, .name == "getParams", .descriptor == "()Lorg/apache/http/params/HttpParams;"
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/protocol/HttpService\0", "getParams\0", "()Lorg/apache/http/params/HttpParams;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setParams](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html#setParams(org.apache.http.params.HttpParams))
///
/// Required features: "org-apache-http-params-HttpParams"
#[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
pub fn setParams<'env>(&'env self, 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::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/HttpService", java.flags == PUBLIC, .name == "setParams", .descriptor == "(Lorg/apache/http/params/HttpParams;)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/protocol/HttpService\0", "setParams\0", "(Lorg/apache/http/params/HttpParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [handleRequest](https://developer.android.com/reference/org/apache/http/protocol/HttpService.html#handleRequest(org.apache.http.HttpServerConnection,%20org.apache.http.protocol.HttpContext))
///
/// Required features: "org-apache-http-HttpServerConnection", "org-apache-http-protocol-HttpContext"
#[cfg(any(feature = "all", all(feature = "org-apache-http-HttpServerConnection", feature = "org-apache-http-protocol-HttpContext")))]
pub fn handleRequest<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::HttpServerConnection>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::protocol::HttpContext>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/apache/http/protocol/HttpService", java.flags == PUBLIC, .name == "handleRequest", .descriptor == "(Lorg/apache/http/HttpServerConnection;Lorg/apache/http/protocol/HttpContext;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.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/protocol/HttpService\0", "handleRequest\0", "(Lorg/apache/http/HttpServerConnection;Lorg/apache/http/protocol/HttpContext;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}