Lines Matching refs:env

25 static void JNICALL nxt_java_Response_addHeader(JNIEnv *env, jclass cls,
31 static void JNICALL nxt_java_Response_addIntHeader(JNIEnv *env, jclass cls,
37 static jboolean JNICALL nxt_java_Response_containsHeader(JNIEnv *env,
40 static jstring JNICALL nxt_java_Response_getHeader(JNIEnv *env, jclass cls,
43 static jobject JNICALL nxt_java_Response_getHeaderNames(JNIEnv *env,
46 static jobject JNICALL nxt_java_Response_getHeaders(JNIEnv *env, jclass cls,
49 static jint JNICALL nxt_java_Response_getStatus(JNIEnv *env, jclass cls,
52 static jobject JNICALL nxt_java_Response_getRequest(JNIEnv *env, jclass cls,
55 static void JNICALL nxt_java_Response_commit(JNIEnv *env, jclass cls,
58 static void JNICALL nxt_java_Response_sendRedirect(JNIEnv *env, jclass cls,
64 static void JNICALL nxt_java_Response_setHeader(JNIEnv *env, jclass cls,
67 static void JNICALL nxt_java_Response_removeHeader(JNIEnv *env, jclass cls,
73 static void JNICALL nxt_java_Response_setIntHeader(JNIEnv *env, jclass cls,
76 static void JNICALL nxt_java_Response_setStatus(JNIEnv *env, jclass cls,
79 static jstring JNICALL nxt_java_Response_getContentType(JNIEnv *env,
82 static jboolean JNICALL nxt_java_Response_isCommitted(JNIEnv *env, jclass cls,
85 static void JNICALL nxt_java_Response_reset(JNIEnv *env, jclass cls,
88 static void JNICALL nxt_java_Response_resetBuffer(JNIEnv *env, jclass cls,
91 static void JNICALL nxt_java_Response_setBufferSize(JNIEnv *env, jclass cls,
94 static jint JNICALL nxt_java_Response_getBufferSize(JNIEnv *env, jclass cls,
97 static void JNICALL nxt_java_Response_setContentLength(JNIEnv *env, jclass cls,
100 static void JNICALL nxt_java_Response_setContentType(JNIEnv *env, jclass cls,
103 static void JNICALL nxt_java_Response_removeContentType(JNIEnv *env, jclass cls,
106 static void JNICALL nxt_java_Response_log(JNIEnv *env, jclass cls,
109 static void JNICALL nxt_java_Response_trace(JNIEnv *env, jclass cls,
113 nxt_java_initResponse(JNIEnv *env, jobject cl) in nxt_java_initResponse() argument
118 cls = nxt_java_loadClass(env, cl, "nginx.unit.Response"); in nxt_java_initResponse()
123 nxt_java_Response_class = (*env)->NewGlobalRef(env, cls); in nxt_java_initResponse()
124 (*env)->DeleteLocalRef(env, cls); in nxt_java_initResponse()
127 nxt_java_Response_ctor = (*env)->GetMethodID(env, cls, "<init>", "(J)V"); in nxt_java_initResponse()
129 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initResponse()
236 res = (*env)->RegisterNatives(env, nxt_java_Response_class, in nxt_java_initResponse()
244 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initResponse()
253 nxt_java_newResponse(JNIEnv *env, nxt_unit_request_info_t *req) in nxt_java_newResponse() argument
255 return (*env)->NewObject(env, nxt_java_Response_class, in nxt_java_newResponse()
261 nxt_java_Response_addHeader(JNIEnv *env, jclass cls, jlong req_info_ptr, in nxt_java_Response_addHeader() argument
269 name_len = (*env)->GetArrayLength(env, name); in nxt_java_Response_addHeader()
270 value_len = (*env)->GetArrayLength(env, value); in nxt_java_Response_addHeader()
277 name_str = (*env)->GetPrimitiveArrayCritical(env, name, NULL); in nxt_java_Response_addHeader()
283 value_str = (*env)->GetPrimitiveArrayCritical(env, value, NULL); in nxt_java_Response_addHeader()
285 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_addHeader()
297 (*env)->ReleasePrimitiveArrayCritical(env, value, value_str, 0); in nxt_java_Response_addHeader()
298 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_addHeader()
360 nxt_java_Response_addIntHeader(JNIEnv *env, jclass cls, jlong req_info_ptr, in nxt_java_Response_addIntHeader() argument
367 name_len = (*env)->GetArrayLength(env, name); in nxt_java_Response_addIntHeader()
374 name_str = (*env)->GetPrimitiveArrayCritical(env, name, NULL); in nxt_java_Response_addIntHeader()
382 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_addIntHeader()
418 nxt_java_Response_containsHeader(JNIEnv *env, in nxt_java_Response_containsHeader() argument
439 name_len = (*env)->GetArrayLength(env, name); in nxt_java_Response_containsHeader()
441 name_str = (*env)->GetPrimitiveArrayCritical(env, name, NULL); in nxt_java_Response_containsHeader()
453 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_containsHeader()
460 nxt_java_Response_getHeader(JNIEnv *env, jclass cls, jlong req_info_ptr, in nxt_java_Response_getHeader() argument
480 name_len = (*env)->GetArrayLength(env, name); in nxt_java_Response_getHeader()
482 name_str = (*env)->GetPrimitiveArrayCritical(env, name, NULL); in nxt_java_Response_getHeader()
492 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_getHeader()
498 return nxt_java_newString(env, nxt_unit_sptr_get(&f->value), in nxt_java_Response_getHeader()
504 nxt_java_Response_getHeaderNames(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_getHeaderNames() argument
520 return nxt_java_newHeaderNamesEnumeration(env, req->response->fields, in nxt_java_Response_getHeaderNames()
526 nxt_java_Response_getHeaders(JNIEnv *env, jclass cls, in nxt_java_Response_getHeaders() argument
549 name_len = (*env)->GetArrayLength(env, name); in nxt_java_Response_getHeaders()
551 name_str = (*env)->GetPrimitiveArrayCritical(env, name, NULL); in nxt_java_Response_getHeaders()
560 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_getHeaders()
566 return nxt_java_newHeadersEnumeration(env, resp->fields, resp->fields_count, in nxt_java_Response_getHeaders()
572 nxt_java_Response_getStatus(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_getStatus() argument
593 nxt_java_Response_getRequest(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_getRequest() argument
606 nxt_java_Response_commit(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_commit() argument
612 nxt_java_OutputStream_flush_buf(env, req); in nxt_java_Response_commit()
617 nxt_java_Response_sendRedirect(JNIEnv *env, jclass cls, in nxt_java_Response_sendRedirect() argument
631 nxt_java_throw_IllegalStateException(env, "Response already sent"); in nxt_java_Response_sendRedirect()
636 loc_len = (*env)->GetArrayLength(env, loc); in nxt_java_Response_sendRedirect()
644 loc_str = (*env)->GetPrimitiveArrayCritical(env, loc, NULL); in nxt_java_Response_sendRedirect()
658 (*env)->ReleasePrimitiveArrayCritical(env, loc, loc_str, 0); in nxt_java_Response_sendRedirect()
722 nxt_java_Response_setHeader(JNIEnv *env, jclass cls, in nxt_java_Response_setHeader() argument
730 name_str = (*env)->GetPrimitiveArrayCritical(env, name, NULL); in nxt_java_Response_setHeader()
737 value_str = (*env)->GetPrimitiveArrayCritical(env, value, NULL); in nxt_java_Response_setHeader()
739 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_setHeader()
747 name_len = (*env)->GetArrayLength(env, name); in nxt_java_Response_setHeader()
748 value_len = (*env)->GetArrayLength(env, value); in nxt_java_Response_setHeader()
756 (*env)->ReleasePrimitiveArrayCritical(env, value, value_str, 0); in nxt_java_Response_setHeader()
757 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_setHeader()
762 nxt_java_Response_removeHeader(JNIEnv *env, jclass cls, in nxt_java_Response_removeHeader() argument
770 name_len = (*env)->GetArrayLength(env, name); in nxt_java_Response_removeHeader()
772 name_str = (*env)->GetPrimitiveArrayCritical(env, name, NULL); in nxt_java_Response_removeHeader()
784 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_removeHeader()
822 nxt_java_Response_setIntHeader(JNIEnv *env, jclass cls, in nxt_java_Response_setIntHeader() argument
832 name_len = (*env)->GetArrayLength(env, name); in nxt_java_Response_setIntHeader()
834 name_str = (*env)->GetPrimitiveArrayCritical(env, name, NULL); in nxt_java_Response_setIntHeader()
847 (*env)->ReleasePrimitiveArrayCritical(env, name, name_str, 0); in nxt_java_Response_setIntHeader()
852 nxt_java_Response_setStatus(JNIEnv *env, jclass cls, jlong req_info_ptr, in nxt_java_Response_setStatus() argument
867 nxt_java_Response_getContentType(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_getContentType() argument
892 return nxt_java_newString(env, nxt_unit_sptr_get(&f->value), in nxt_java_Response_getContentType()
898 nxt_java_Response_isCommitted(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_isCommitted() argument
913 nxt_java_Response_reset(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_reset() argument
922 nxt_java_throw_IllegalStateException(env, "Response already sent"); in nxt_java_Response_reset()
946 nxt_java_Response_resetBuffer(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_resetBuffer() argument
961 nxt_java_Response_setBufferSize(JNIEnv *env, jclass cls, jlong req_info_ptr, in nxt_java_Response_setBufferSize() argument
975 nxt_java_throw_IllegalStateException(env, "Buffer is not empty"); in nxt_java_Response_setBufferSize()
997 nxt_java_Response_getBufferSize(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_getBufferSize() argument
1010 nxt_java_Response_setContentLength(JNIEnv *env, jclass cls, jlong req_info_ptr, in nxt_java_Response_setContentLength() argument
1025 nxt_java_Response_setContentType(JNIEnv *env, jclass cls, jlong req_info_ptr, in nxt_java_Response_setContentType() argument
1035 type_len = (*env)->GetArrayLength(env, type); in nxt_java_Response_setContentType()
1037 type_str = (*env)->GetPrimitiveArrayCritical(env, type, NULL); in nxt_java_Response_setContentType()
1049 (*env)->ReleasePrimitiveArrayCritical(env, type, type_str, 0); in nxt_java_Response_setContentType()
1054 nxt_java_Response_removeContentType(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_Response_removeContentType() argument
1062 nxt_java_Response_log(JNIEnv *env, jclass cls, jlong req_info_ptr, jarray msg) in nxt_java_Response_log() argument
1069 msg_len = (*env)->GetArrayLength(env, msg); in nxt_java_Response_log()
1071 msg_str = (*env)->GetPrimitiveArrayCritical(env, msg, NULL); in nxt_java_Response_log()
1079 (*env)->ReleasePrimitiveArrayCritical(env, msg, msg_str, 0); in nxt_java_Response_log()
1084 nxt_java_Response_trace(JNIEnv *env, jclass cls, jlong req_info_ptr, jarray msg) in nxt_java_Response_trace() argument
1092 msg_len = (*env)->GetArrayLength(env, msg); in nxt_java_Response_trace()
1094 msg_str = (*env)->GetPrimitiveArrayCritical(env, msg, NULL); in nxt_java_Response_trace()
1102 (*env)->ReleasePrimitiveArrayCritical(env, msg, msg_str, 0); in nxt_java_Response_trace()