Home
last modified time | relevance | path

Searched refs:type (Results 51 – 75 of 129) sorted by path

123456

/unit/src/java/nginx/unit/
H A DIncludeRequestWrapper.java46 public void setDispatcherType(DispatcherType type) in setDispatcherType() argument
48 request_.setDispatcherType(type); in setDispatcherType()
H A DIncludeResponseWrapper.java107 public void setContentType(String type) in setContentType() argument
109 trace("setContentType: " + type); in setContentType()
H A DRequest.java749 public void setDispatcherType(DispatcherType type) in setDispatcherType() argument
751 trace("setDispatcherType: " + type); in setDispatcherType()
753 dispatcher_type = type; in setDispatcherType()
H A DResponse.java722 contentTypeHeader = type; in setCharacterEncoding()
724 setContentType(req_info_ptr, type.getBytes(ISO_8859_1)); in setCharacterEncoding()
757 public void setContentType(String type) in setContentType() argument
759 trace("setContentType: " + type); in setContentType()
765 if (type == null) { in setContentType()
772 String charset = MimeTypes.getCharsetFromContentType(type); in setContentType()
773 String ctype = MimeTypes.getContentTypeWithoutCharset(type); in setContentType()
781 type = ctype + ";charset=" + characterEncoding; in setContentType()
785 type = type + ";charset=" + characterEncoding; in setContentType()
791 contentTypeHeader = type; in setContentType()
[all …]
/unit/src/java/nginx/unit/websocket/
H A DLocalStrings.properties48 util.invalidType=Unable to coerce value [{0}] to type [{1}]. That type is not supported.
49 util.unknownDecoderType=The Decoder type [{0}] is not recognized
88 …RemoteEndpoint.changeType=When sending a fragmented message, all fragments must be of the same type
91 wsRemoteEndpoint.invalidEncoder=The specified encoder of type [{0}] could not be instantiated
116 …on.unknownHandler=Unable to add the message handler [{0}] as it was for the unrecognised type [{1}]
117 …andlerType=Unable to add the message handler [{0}] as it was wrapped as the unrecognised type [{1}]
128 wsWebSocketContainer.endpointCreateFail=Failed to create a local endpoint of type [{0}]
H A DMessageHandlerResult.java24 private final MessageHandlerResultType type; field in MessageHandlerResult
28 MessageHandlerResultType type) { in MessageHandlerResult() argument
30 this.type = type; in MessageHandlerResult()
40 return type; in getType()
H A DUtil.java185 private static <T> TypeResult getGenericType(Class<T> type, in getGenericType() argument
308 if (type.equals(String.class)) { in coerceToType()
310 } else if (type.equals(boolean.class) || type.equals(Boolean.class)) { in coerceToType()
312 } else if (type.equals(byte.class) || type.equals(Byte.class)) { in coerceToType()
314 } else if (type.equals(char.class) || type.equals(Character.class)) { in coerceToType()
316 } else if (type.equals(double.class) || type.equals(Double.class)) { in coerceToType()
318 } else if (type.equals(float.class) || type.equals(Float.class)) { in coerceToType()
320 } else if (type.equals(int.class) || type.equals(Integer.class)) { in coerceToType()
322 } else if (type.equals(long.class) || type.equals(Long.class)) { in coerceToType()
324 } else if (type.equals(short.class) || type.equals(Short.class)) { in coerceToType()
[all …]
H A DWsWebSocketContainer.java234 if (proxy.type().equals(Proxy.Type.HTTP)) { in connectToServerRecursive()
/unit/src/java/nginx/unit/websocket/pojo/
H A DLocalStrings.properties17 pojoEndpointBase.onCloseFail=Failed to call onClose method of POJO end point for POJO of type [{0}]
19 pojoEndpointBase.onErrorFail=Failed to call onError method of POJO end point for POJO of type [{0}]
20 pojoEndpointBase.onOpenFail=Failed to call onOpen method of POJO end point for POJO of type [{0}]
21 pojoEndpointServer.getPojoInstanceFail=Failed to create instance of POJO of type [{0}]
22 pojoMethodMapping.decodePathParamFail=Failed to decode path parameter value [{0}] to expected type
28 pojoMethodMapping.invalidDecoder=The specified decoder of type [{0}] could not be instantiated
33 pojoMethodMapping.paramWithoutAnnotation=A parameter of type [{0}] was found on method[{1}] of clas…
H A DPojoMessageHandlerWholeText.java66 Class<?> type = method.getParameterTypes()[indexPayload]; in PojoMessageHandlerWholeText() local
67 if (Util.isPrimitive(type)) { in PojoMessageHandlerWholeText()
68 primitiveType = type; in PojoMessageHandlerWholeText()
H A DPojoMethodMapping.java286 Class<?> type = types[i]; in getPathParams() local
287 if (type.equals(Session.class)) { in getPathParams()
290 type.equals(EndpointConfig.class)) { in getPathParams()
293 && type.equals(Throwable.class)) { in getPathParams()
297 type.equals(CloseReason.class)) { in getPathParams()
307 Util.coerceToType(type, "0"); in getPathParams()
341 Class<?> type = pathParams[i].getType(); in buildArgs() local
342 if (type.equals(Session.class)) { in buildArgs()
346 } else if (type.equals(Throwable.class)) { in buildArgs()
348 } else if (type.equals(CloseReason.class)) { in buildArgs()
[all …]
H A DPojoPathParam.java29 private final Class<?> type; field in PojoPathParam
33 public PojoPathParam(Class<?> type, String name) { in PojoPathParam() argument
34 this.type = type; in PojoPathParam()
40 return type; in getType()
/unit/src/java/nginx/unit/websocket/server/
H A DLocalStrings.properties17 serverContainer.configuratorFail=Failed to create configurator of type [{0}] for POJO of type [{1}]
19 serverContainer.encoderFail=Unable to create encoder of type [{0}]
/unit/src/java/
H A Dnxt_jni_Response.c101 jlong req_info_ptr, jarray type);
1027 jarray type) in nxt_java_Response_setContentType() argument
1036 type_len = (*env)->GetArrayLength(env, type); in nxt_java_Response_setContentType()
1038 type_str = (*env)->GetPrimitiveArrayCritical(env, type, NULL); in nxt_java_Response_setContentType()
1050 (*env)->ReleasePrimitiveArrayCritical(env, type, type_str, 0); in nxt_java_Response_setContentType()
/unit/src/nodejs/unit-http/
H A Dunit.cpp53 timer.type = UV_UNKNOWN_HANDLE; in port_data_t()
68 if (timer.type == UV_UNKNOWN_HANDLE) { in process_port_msg()
96 if (timer.type == UV_UNKNOWN_HANDLE) { in stop()
H A Dutils.js11 function(emitter, type) { return emitter.listeners(type).length; };
H A Dwebsocket_connection.js345 type: 'binary',
363 type: 'utf8',
410 type: 'binary',
416 type: 'utf8',
/unit/src/
H A Dnxt_application.c34 nxt_app_type_t type; member
153 .type = NXT_PROCESS_APP,
344 nxt_app_type_t type; in nxt_discovery_module() local
376 type = nxt_app_parse_type(app->type.start, app->type.length); in nxt_discovery_module()
378 if (type == NXT_APP_UNKNOWN) { in nxt_discovery_module()
391 if (type == module[i].type in nxt_discovery_module()
408 module->type = type; in nxt_discovery_module()
455 to->type = from->type; in nxt_discovery_module()
1030 nxt_app_type_t type; in nxt_app_lang_module() local
1050 if (type == NXT_APP_UNKNOWN) { in nxt_app_lang_module()
[all …]
H A Dnxt_application.h37 nxt_app_type_t type; member
117 nxt_str_t type; member
155 nxt_str_t type; member
H A Dnxt_cert.c102 char *type, *header; in nxt_cert_bio() local
134 nxt_debug(task, "PEM type: \"%s\"", type); in nxt_cert_bio()
146 if (nxt_strcmp(type, PEM_STRING_PKCS8) == 0) { in nxt_cert_bio()
151 if (nxt_strcmp(type, PEM_STRING_PKCS8INF) == 0) { in nxt_cert_bio()
187 if (nxt_strcmp(type, PEM_STRING_X509) == 0 in nxt_cert_bio()
219 OPENSSL_free(type); in nxt_cert_bio()
754 if (name->type != GEN_DNS) { in nxt_cert_alt_names_details()
769 if (name->type != GEN_DNS) { in nxt_cert_alt_names_details()
1084 recv_port = rt->port_by_type[rt->type]; in nxt_cert_store_get()
1132 nxt_port_msg_type_t type; in nxt_cert_store_get_handler() local
[all …]
H A Dnxt_cgroup.c25 if (task->thread->runtime->type != NXT_PROCESS_MAIN in nxt_cgroup_proc_add()
H A Dnxt_clang.h201 #define nxt_container_of(p, type, field) \ argument
202 (type *) ((u_char *) (p) - offsetof(type, field))
209 #define nxt_value_at(type, p, offset) \ argument
210 *(type *) ((u_char *) p + offset)
H A Dnxt_conf.c430 switch (value->type) { in nxt_conf_type()
487 switch (value->type) { in nxt_conf_get_path()
619 switch (map[i].type) { in nxt_conf_map_object()
642 switch (map[i].type) { in nxt_conf_map_object()
851 switch (root->type) { in nxt_conf_op_compile()
990 switch (src->type) { in nxt_conf_copy_value()
1016 dst->type = src->type; in nxt_conf_copy_value()
1116 dst->type = src->type; in nxt_conf_copy_array()
1246 dst->type = src->type; in nxt_conf_copy_object()
2237 switch (value->type) { in nxt_conf_json_length()
[all …]
H A Dnxt_conf.h60 nxt_conf_map_type_t type; member
H A Dnxt_conf_validation.c1460 if ((1 << value_type) & type) { in nxt_conf_vldt_type()
1466 n = nxt_popcount(type); in nxt_conf_vldt_type()
1475 t = __builtin_ffs(type) - 1; in nxt_conf_vldt_type()
1495 type = type & ~(1 << t); in nxt_conf_vldt_type()
1598 nxt_str_t *type; member
1650 *ctx->type = *name; in nxt_conf_vldt_mtypes_type()
2575 nxt_uint_t type; in nxt_conf_vldt_response_header() local
2589 type = nxt_conf_type(value); in nxt_conf_vldt_response_header()
2591 if (type == NXT_CONF_STRING || type == NXT_CONF_NULL) { in nxt_conf_vldt_response_header()
2660 nxt_str_t type; in nxt_conf_vldt_app() local
[all …]

123456