/unit/src/java/javax/websocket/ |
H A D | ContainerProvider.java | 37 WebSocketContainer result = null; in getWebSocketContainer() local 42 while (result == null && iter.hasNext()) { in getWebSocketContainer() 43 result = iter.next().getContainer(); in getWebSocketContainer() 47 if (result == null) { in getWebSocketContainer() 53 result = clazz.getConstructor().newInstance(); in getWebSocketContainer() 59 return result; in getWebSocketContainer()
|
H A D | SendHandler.java | 21 void onResult(SendResult result); in onResult() argument
|
/unit/src/java/nginx/unit/websocket/pojo/ |
H A D | PojoMessageHandlerBase.java | 70 protected final void processResult(Object result) { in processResult() argument 71 if (result == null) { in processResult() 77 if (result instanceof String) { in processResult() 78 remoteEndpoint.sendText((String) result); in processResult() 79 } else if (result instanceof ByteBuffer) { in processResult() 80 remoteEndpoint.sendBinary((ByteBuffer) result); in processResult() 81 } else if (result instanceof byte[]) { in processResult() 82 remoteEndpoint.sendBinary(ByteBuffer.wrap((byte[]) result)); in processResult() 84 remoteEndpoint.sendObject(result); in processResult()
|
H A D | PojoMessageHandlerPartialBase.java | 69 Object result = null; in onMessage() local 71 result = method.invoke(pojo, parameters); in onMessage() 75 processResult(result); in onMessage()
|
H A D | PojoMessageHandlerWholeBase.java | 78 Object result = null; in onMessage() local 80 result = method.invoke(pojo, parameters); in onMessage() 84 processResult(result); in onMessage()
|
H A D | PojoMethodMapping.java | 267 Set<MessageHandler> result = new HashSet<>(); in getMessageHandlers() local 272 return result; in getMessageHandlers() 288 result[i] = new PojoPathParam(type, null); in getPathParams() 319 if (result[i] == null) { in getPathParams() 331 return result; in getPathParams() 339 Object[] result = new Object[pathParams.length]; in buildArgs() local 343 result[i] = session; in buildArgs() 345 result[i] = config; in buildArgs() 347 result[i] = throwable; in buildArgs() 349 result[i] = closeReason; in buildArgs() [all …]
|
/unit/src/java/nginx/unit/websocket/ |
H A D | FutureToSendHandler.java | 41 private volatile AtomicReference<SendResult> result = new AtomicReference<>(null); field in FutureToSendHandler 51 public void onResult(SendResult result) { in onResult() argument 52 this.result.compareAndSet(null, result); in onResult() 85 if (result.get().getException() != null) { in get() 86 throw new ExecutionException(result.get().getException()); in get() 107 if (result.get().getException() != null) { in get() 108 throw new ExecutionException(result.get().getException()); in get()
|
H A D | Util.java | 160 sr.nextBytes(result); in generateMask() 165 return result; in generateMask() 233 if (result.getClazz() != null && result.getDimension() > 0) { in getGenericType() 236 return result; in getGenericType() 277 return result; in getTypeParameter() 357 return result; in getDecoders() 374 results.add(result); in getMessageHandlers() 379 results.add(result); in getMessageHandlers() 384 results.add(result); in getMessageHandlers() 398 results.add(result); in getMessageHandlers() [all …]
|
H A D | AsyncChannelWrapperSecure.java | 425 resultStatus = result.getStatus(); in checkResult() 432 if (wrap && result.bytesConsumed() != 0) { in checkResult() 447 private volatile T result = null; field in AsyncChannelWrapperSecure.WrapperFuture 460 public void complete(T result) { in complete() argument 461 this.result = result; in complete() 464 handler.completed(result, attachment); in complete() 499 return result; in get() 513 return result; in get() 542 Long result = wrapped.get(); in get() local 547 return Integer.valueOf(result.intValue()); in get() [all …]
|
H A D | WsWebSocketContainer.java | 628 return result; in getOpenSessions() 706 return result; in generateExtensionHeaders() 736 result = addHeader(result, entry.getKey(), entry.getValue()); in createRequest() 740 result.put(CRLF); in createRequest() 742 result.flip(); in createRequest() 744 return result; in createRequest() 750 return result; in addHeader() 753 result = putWithExpand(result, key.getBytes(StandardCharsets.ISO_8859_1)); in addHeader() 756 result = putWithExpand(result, CRLF); in addHeader() 758 return result; in addHeader() [all …]
|
H A D | WsRemoteEndpointImplBase.java | 386 handler.onResult(result); in endMessage() 782 handler.onResult(result); in onResult() 783 } else if(!result.isOK()) { in onResult() 784 handler.onResult(result); in onResult() 888 if (result.isOK()) { in onResult() 896 handler.onResult(result); in onResult() 917 if (result.isOK()) { in onResult() 920 handler.onResult(result); in onResult() 1213 if (result.isOK()) { in onResult() 1216 handler.onResult(result); in onResult() [all …]
|
H A D | WsFrameBase.java | 286 boolean result; in processData() 288 result = processDataControl(); in processData() 291 result = swallowInput(); in processData() 293 result = processDataText(); in processData() 297 result = swallowInput(); in processData() 299 result = processDataBinary(); in processData() 303 return result; in processData() 671 long result = 0; in byteArrayToLong() local 673 result = result + ((b[i] & 0xFF) << shift); in byteArrayToLong() 676 return result; in byteArrayToLong()
|
H A D | PerMessageDeflate.java | 270 Extension result = new WsExtension(NAME); in getExtensionResponse() local 272 List<Extension.Parameter> params = result.getParameters(); in getExtensionResponse() 289 return result; in getExtensionResponse() 460 int result = uncompressedMessagePart.getRsv(); in getRsv() local 462 result += RSV_BITMASK; in getRsv() 465 return result; in getRsv()
|
/unit/src/java/nginx/unit/websocket/server/ |
H A D | WsWriteTimeout.java | 85 boolean result = endpoints.add(endpoint); in register() 86 if (result) { in register() 96 boolean result = endpoints.remove(endpoint); in unregister() 97 if (result) { in unregister()
|
H A D | DefaultServerEndpointConfigurator.java | 67 List<Extension> result = new ArrayList<>(); in getNegotiatedExtensions() local 70 result.add(request); in getNegotiatedExtensions() 73 return result; in getNegotiatedExtensions()
|
H A D | UpgradeUtil.java | 198 List<Transformation> result = new ArrayList<>(negotiatedExtensions.size()); in createTransformations() local 216 result.add(transformation); in createTransformations() 219 return result; in createTransformations() 267 List<String> result = new ArrayList<>(); in getTokensFromHeader() local 273 result.add(token.trim()); in getTokensFromHeader() 276 return result; in getTokensFromHeader()
|
H A D | UriTemplate.java | 105 Map<String,String> result = new HashMap<>(); in match() local 129 result.put(targetSegment.getValue(), in match() 134 return result; in match()
|
/unit/src/ |
H A D | nxt_sha1.c | 94 result[0] = (u_char) (ctx->a >> 24); in nxt_sha1_final() 96 result[2] = (u_char) (ctx->a >> 8); in nxt_sha1_final() 97 result[3] = (u_char) ctx->a; in nxt_sha1_final() 100 result[6] = (u_char) (ctx->b >> 8); in nxt_sha1_final() 101 result[7] = (u_char) ctx->b; in nxt_sha1_final() 104 result[10] = (u_char) (ctx->c >> 8); in nxt_sha1_final() 105 result[11] = (u_char) ctx->c; in nxt_sha1_final() 108 result[14] = (u_char) (ctx->d >> 8); in nxt_sha1_final() 109 result[15] = (u_char) ctx->d; in nxt_sha1_final() 112 result[18] = (u_char) (ctx->e >> 8); in nxt_sha1_final() [all …]
|
H A D | nxt_sha1.h | 21 NXT_EXPORT void nxt_sha1_final(u_char result[20], nxt_sha1_t *ctx);
|
/unit/test/perl/errors_print/ |
H A D | psgi.pl | 4 my $result = $environ->{'psgi.errors'}->print('Error in application'); 6 return ['200', ['Content-Length' => '1'], [$result]];
|
/unit/src/java/javax/websocket/server/ |
H A D | ServerEndpointConfig.java | 167 Configurator result = null; in loadDefault() local 173 while (result == null && iter.hasNext()) { in loadDefault() 174 result = iter.next(); in loadDefault() 178 if (result == null) { in loadDefault() 184 result = clazz.getConstructor().newInstance(); in loadDefault() 190 return result; in loadDefault()
|
/unit/src/perl/ |
H A D | nxt_perl_psgi.c | 75 SV *result); 337 SV *result; in nxt_perl_psgi_call_var_application() local 357 result = POPs; in nxt_perl_psgi_call_var_application() 358 SvREFCNT_inc(result); in nxt_perl_psgi_call_var_application() 364 return result; in nxt_perl_psgi_call_var_application() 372 SV *result; in nxt_perl_psgi_call_method() local 390 result = NULL; in nxt_perl_psgi_call_method() 400 return result; in nxt_perl_psgi_call_method() 764 array = (AV *) SvRV(result); in nxt_perl_psgi_result_status() 1234 if (nxt_fast_path(SvOK(result) != 0 && SvROK(result) != 0)) { in nxt_perl_psgi_request_handler() [all …]
|
/unit/src/ruby/ |
H A D | nxt_ruby.c | 61 VALUE result); 63 VALUE result, nxt_int_t status); 67 VALUE result); 669 VALUE env, result; in nxt_ruby_rack_app_run() local 689 if (nxt_slow_path(TYPE(result) != T_ARRAY)) { in nxt_ruby_rack_app_run() 696 if (nxt_slow_path(RARRAY_LEN(result) != 3)) { in nxt_ruby_rack_app_run() 717 rc = nxt_ruby_rack_result_body(req, result); in nxt_ruby_rack_app_run() 724 return result; in nxt_ruby_rack_app_run() 808 status = rb_ary_entry(result, 0); in nxt_ruby_rack_result_status() 842 headers = rb_ary_entry(result, 1); in nxt_ruby_rack_result_headers() [all …]
|
/unit/src/test/ |
H A D | nxt_http_parse_test.c | 27 nxt_int_t result; member 41 nxt_int_t result; member 567 if (rc != test->result) { in nxt_http_parse_test() 571 &test->request, rc, test->result); in nxt_http_parse_test() 803 if (rc != data->fields.result) { in nxt_http_parse_test_fields() 807 request, rc, data->fields.result); in nxt_http_parse_test_fields()
|
H A D | nxt_clone_test.c | 22 nxt_int_t result; member 408 if (tc->result == NXT_OK && level == NXT_LOG_DEBUG) { in nxt_clone_test_log_handler() 543 if (ret != tc->result) { in nxt_clone_test_map_assert() 545 "return %d instead of %d (map: %V)", ret, tc->result, in nxt_clone_test_map_assert()
|