Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 12 of 12) sorted by relevance

/unit/src/java/
H A Dnxt_jni.c27 jclass cls; in nxt_java_jni_init() local
30 if (cls == NULL) { in nxt_java_jni_init()
35 (*env)->DeleteLocalRef(env, cls); in nxt_java_jni_init()
38 cls = (*env)->FindClass(env, "java/io/IOException"); in nxt_java_jni_init()
39 if (cls == NULL) { in nxt_java_jni_init()
45 (*env)->DeleteLocalRef(env, cls); in nxt_java_jni_init()
49 if (cls == NULL) { in nxt_java_jni_init()
56 (*env)->DeleteLocalRef(env, cls); in nxt_java_jni_init()
59 cls = (*env)->FindClass(env, "java/io/File"); in nxt_java_jni_init()
60 if (cls == NULL) { in nxt_java_jni_init()
[all …]
H A Dnxt_jni_Request.c89 jclass cls; in nxt_java_initRequest() local
91 cls = nxt_java_loadClass(env, cl, "nginx.unit.Request"); in nxt_java_initRequest()
92 if (cls == NULL) { in nxt_java_initRequest()
97 (*env)->DeleteLocalRef(env, cls); in nxt_java_initRequest()
98 cls = nxt_java_Request_class; in nxt_java_initRequest()
102 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initRequest()
108 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initRequest()
114 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initRequest()
258 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initRequest()
753 nxt_java_Request_sendWsFrameBuf(JNIEnv *env, jclass cls, in nxt_java_Request_sendWsFrameBuf() argument
[all …]
H A Dnxt_jni_Thread.c21 jclass cls; in nxt_java_initThread() local
23 cls = (*env)->FindClass(env, "java/lang/Thread"); in nxt_java_initThread()
24 if (cls == NULL) { in nxt_java_initThread()
29 nxt_java_Thread_class = (*env)->NewGlobalRef(env, cls); in nxt_java_initThread()
30 (*env)->DeleteLocalRef(env, cls); in nxt_java_initThread()
31 cls = nxt_java_Thread_class; in nxt_java_initThread()
33 nxt_java_Thread_currentThread = (*env)->GetStaticMethodID(env, cls, in nxt_java_initThread()
40 nxt_java_Thread_getContextClassLoader = (*env)->GetMethodID(env, cls, in nxt_java_initThread()
48 nxt_java_Thread_setContextClassLoader = (*env)->GetMethodID(env, cls, in nxt_java_initThread()
60 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initThread()
H A Dnxt_jni_URLClassLoader.c25 jclass cls; in nxt_java_initURLClassLoader() local
27 cls = (*env)->FindClass(env, "java/net/URLClassLoader"); in nxt_java_initURLClassLoader()
28 if (cls == NULL) { in nxt_java_initURLClassLoader()
34 (*env)->DeleteLocalRef(env, cls); in nxt_java_initURLClassLoader()
35 cls = nxt_java_URLClassLoader_class; in nxt_java_initURLClassLoader()
65 cls = (*env)->FindClass(env, "java/net/URL"); in nxt_java_initURLClassLoader()
66 if (cls == NULL) { in nxt_java_initURLClassLoader()
72 (*env)->DeleteLocalRef(env, cls); in nxt_java_initURLClassLoader()
73 cls = nxt_java_URL_class; in nxt_java_initURLClassLoader()
75 nxt_java_URL_ctor = (*env)->GetMethodID(env, cls, in nxt_java_initURLClassLoader()
[all …]
H A Dnxt_jni_HeaderNamesEnumeration.c19 jclass cls, jlong headers_ptr, jlong size, jlong pos);
21 jclass cls, jlong headers_ptr, jlong size, jlong pos);
32 jclass cls; in nxt_java_initHeaderNamesEnumeration() local
35 if (cls == NULL) { in nxt_java_initHeaderNamesEnumeration()
40 (*env)->DeleteLocalRef(env, cls); in nxt_java_initHeaderNamesEnumeration()
41 cls = nxt_java_HeaderNamesEnumeration_class; in nxt_java_initHeaderNamesEnumeration()
43 nxt_java_HeaderNamesEnumeration_ctor = (*env)->GetMethodID(env, cls, in nxt_java_initHeaderNamesEnumeration()
46 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initHeaderNamesEnumeration()
68 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initHeaderNamesEnumeration()
88 nxt_java_HeaderNamesEnumeration_nextElementPos(JNIEnv *env, jclass cls, in nxt_java_HeaderNamesEnumeration_nextElementPos() argument
[all …]
H A Dnxt_jni_HeadersEnumeration.c23 jclass cls, jlong headers_ptr, jlong size, jlong ipos, jlong pos);
26 jclass cls, jlong headers_ptr, jlong size, jlong ipos, jlong pos);
33 jclass cls; in nxt_java_initHeadersEnumeration() local
36 if (cls == NULL) { in nxt_java_initHeadersEnumeration()
41 (*env)->DeleteLocalRef(env, cls); in nxt_java_initHeadersEnumeration()
42 cls = nxt_java_HeadersEnumeration_class; in nxt_java_initHeadersEnumeration()
44 nxt_java_HeadersEnumeration_ctor = (*env)->GetMethodID(env, cls, in nxt_java_initHeadersEnumeration()
47 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initHeadersEnumeration()
68 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initHeadersEnumeration()
88 nxt_java_HeadersEnumeration_nextElementPos(JNIEnv *env, jclass cls, in nxt_java_HeadersEnumeration_nextElementPos() argument
[all …]
H A Dnxt_jni_Context.c21 static void JNICALL nxt_java_Context_log(JNIEnv *env, jclass cls,
23 static void JNICALL nxt_java_Context_trace(JNIEnv *env, jclass cls,
31 jclass cls; in nxt_java_initContext() local
33 cls = nxt_java_loadClass(env, cl, "nginx.unit.Context"); in nxt_java_initContext()
34 if (cls == NULL) { in nxt_java_initContext()
39 nxt_java_Context_class = (*env)->NewGlobalRef(env, cls); in nxt_java_initContext()
40 (*env)->DeleteLocalRef(env, cls); in nxt_java_initContext()
41 cls = nxt_java_Context_class; in nxt_java_initContext()
43 nxt_java_Context_start = (*env)->GetStaticMethodID(env, cls, "start", in nxt_java_initContext()
50 nxt_java_Context_service = (*env)->GetMethodID(env, cls, "service", in nxt_java_initContext()
[all …]
H A Dnxt_jni_InputStream.c17 static jint JNICALL nxt_java_InputStream_readLine(JNIEnv *env, jclass cls,
21 static jint JNICALL nxt_java_InputStream_readByte(JNIEnv *env, jclass cls,
23 static jint JNICALL nxt_java_InputStream_read(JNIEnv *env, jclass cls,
25 static jlong JNICALL nxt_java_InputStream_skip(JNIEnv *env, jclass cls,
38 jclass cls; in nxt_java_initInputStream() local
40 cls = nxt_java_loadClass(env, cl, "nginx.unit.InputStream"); in nxt_java_initInputStream()
41 if (cls == NULL) { in nxt_java_initInputStream()
45 nxt_java_InputStream_class = (*env)->NewGlobalRef(env, cls); in nxt_java_initInputStream()
46 (*env)->DeleteLocalRef(env, cls); in nxt_java_initInputStream()
81 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initInputStream()
[all …]
H A Dnxt_jni_OutputStream.c16 static void JNICALL nxt_java_OutputStream_writeByte(JNIEnv *env, jclass cls,
20 static void JNICALL nxt_java_OutputStream_write(JNIEnv *env, jclass cls,
22 static void JNICALL nxt_java_OutputStream_flush(JNIEnv *env, jclass cls,
24 static void JNICALL nxt_java_OutputStream_close(JNIEnv *env, jclass cls,
35 jclass cls; in nxt_java_initOutputStream() local
37 cls = nxt_java_loadClass(env, cl, "nginx.unit.OutputStream"); in nxt_java_initOutputStream()
38 if (cls == NULL) { in nxt_java_initOutputStream()
42 nxt_java_OutputStream_class = (*env)->NewGlobalRef(env, cls); in nxt_java_initOutputStream()
43 (*env)->DeleteLocalRef(env, cls); in nxt_java_initOutputStream()
45 cls = nxt_java_OutputStream_class; in nxt_java_initOutputStream()
[all …]
H A Dnxt_jni_Response.c38 jclass cls, jlong req_info_ptr, jarray name);
44 jclass cls, jlong req_info_ptr);
80 jclass cls, jlong req_info_ptr);
116 jclass cls; in nxt_java_initResponse() local
119 if (cls == NULL) { in nxt_java_initResponse()
124 (*env)->DeleteLocalRef(env, cls); in nxt_java_initResponse()
125 cls = nxt_java_Response_class; in nxt_java_initResponse()
129 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initResponse()
244 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initResponse()
419 jclass cls, jlong req_info_ptr, jarray name) in nxt_java_Response_containsHeader() argument
[all …]
/unit/test/
H A Dconftest.py129 cls = metafunc.cls
131 not hasattr(cls, 'application_type')
132 or cls.application_type == None
133 or cls.application_type == 'external'
137 type = cls.application_type
169 % (str(prereq_version), module, str(cls))
241 cls = request.cls
246 if 'modules' in cls.prerequisites:
249 for module in cls.prerequisites['modules']:
260 if 'features' in cls.prerequisites:
[all …]
/unit/src/java/nginx/unit/
H A DContext.java1019 Class<?> cls = e.getClass(); in handleException() local
1020 while (cls != null && !cls.equals(Throwable.class)) { in handleException()
1036 cls = cls.getSuperclass(); in handleException()
1595 Class<?> cls = ci.loadClass();
1596 if (!Filter.class.isAssignableFrom(cls)) {
1617 reg = new FilterReg(filter_name, cls);
1621 reg.setClass(cls);
1661 Class<?> cls = ci.loadClass();
1687 reg.setClass(cls);
1719 Class<?> cls = ci.loadClass();
[all …]