1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "java-net-ResponseCache"))]
__jni_bindgen! {
    /// public class [ResponseCache](https://developer.android.com/reference/java/net/ResponseCache.html)
    ///
    /// Required feature: "java-net-ResponseCache"
    public class ResponseCache ("java/net/ResponseCache") extends crate::java::lang::Object {

        /// [ResponseCache](https://developer.android.com/reference/java/net/ResponseCache.html#ResponseCache())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::net::ResponseCache>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/net/ResponseCache", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/ResponseCache\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getDefault](https://developer.android.com/reference/java/net/ResponseCache.html#getDefault())
        ///
        /// Required features: "java-net-ResponseCache"
        #[cfg(any(feature = "all", all(feature = "java-net-ResponseCache")))]
        pub fn getDefault<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::ResponseCache>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/net/ResponseCache", java.flags == PUBLIC | STATIC | SYNCRONIZED, .name == "getDefault", .descriptor == "()Ljava/net/ResponseCache;"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/ResponseCache\0", "getDefault\0", "()Ljava/net/ResponseCache;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setDefault](https://developer.android.com/reference/java/net/ResponseCache.html#setDefault(java.net.ResponseCache))
        ///
        /// Required features: "java-net-ResponseCache"
        #[cfg(any(feature = "all", all(feature = "java-net-ResponseCache")))]
        pub fn setDefault<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::ResponseCache>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/net/ResponseCache", java.flags == PUBLIC | STATIC | SYNCRONIZED, .name == "setDefault", .descriptor == "(Ljava/net/ResponseCache;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/ResponseCache\0", "setDefault\0", "(Ljava/net/ResponseCache;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [get](https://developer.android.com/reference/java/net/ResponseCache.html#get(java.net.URI,%20java.lang.String,%20java.util.Map))
        ///
        /// Required features: "java-lang-String", "java-net-CacheResponse", "java-net-URI", "java-util-Map"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-net-CacheResponse", feature = "java-net-URI", feature = "java-util-Map")))]
        pub fn get<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::URI>>, 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::java::util::Map>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::CacheResponse>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/net/ResponseCache", java.flags == PUBLIC | ABSTRACT, .name == "get", .descriptor == "(Ljava/net/URI;Ljava/lang/String;Ljava/util/Map;)Ljava/net/CacheResponse;"
            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_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/ResponseCache\0", "get\0", "(Ljava/net/URI;Ljava/lang/String;Ljava/util/Map;)Ljava/net/CacheResponse;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [put](https://developer.android.com/reference/java/net/ResponseCache.html#put(java.net.URI,%20java.net.URLConnection))
        ///
        /// Required features: "java-net-CacheRequest", "java-net-URI", "java-net-URLConnection"
        #[cfg(any(feature = "all", all(feature = "java-net-CacheRequest", feature = "java-net-URI", feature = "java-net-URLConnection")))]
        pub fn put<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::URI>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::net::URLConnection>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::CacheRequest>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/net/ResponseCache", java.flags == PUBLIC | ABSTRACT, .name == "put", .descriptor == "(Ljava/net/URI;Ljava/net/URLConnection;)Ljava/net/CacheRequest;"
            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("java/net/ResponseCache\0", "put\0", "(Ljava/net/URI;Ljava/net/URLConnection;)Ljava/net/CacheRequest;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}