Source File: WebSocketMessagingHandlerConfiguration.java From jetlinks-community with Apache License 2.0 6 votes @Bean public HandlerMapping webSocketMessagingHandlerMapping(MessagingManager messagingManager, UserTokenManager userTokenManager, ReactiveAuthenticationManager authenticationManager) { WebSocketMessaging...
Source File: DeviceInstanceController.java From jetlinks-community with Apache License 2.0 6 votes @GetMapping("/export.{format}") @QueryAction public Mono<Void> export(ServerHttpResponse response, QueryParamEntity parameter, @PathVariable String format) throws IOException { response.getHeaders()....
Source File: DefaultAggregationService.java From jetlinks-community with Apache License 2.0 6 votes private <T> ActionListener<T> translatorActionListener(MonoSink<T> sink) { return new ActionListener<T>() { @Override public void onResponse(T response) { sink.success(response); } @Override ...
Source File: DefaultEmailNotifier.java From jetlinks-community with Apache License 2.0 6 votes public DefaultEmailNotifier(NotifierProperties properties, TemplateManager templateManager) { super(templateManager); notifierId = properties.getId(); DefaultEmailProperties emailProperties = new JSONO...
Source File: EmbeddedRedisConfiguration.java From jetlinks-community with Apache License 2.0 4 votes @Override public int getOrder() { return Ordered.HIGHEST_PRECEDENCE; } Example 14Source File: GatewayConfiguration.java From spring-cloud-sofastack-samples with Apache License 2.0 4 votes /** * ...
Source File: ExecutorConfiguration.java From jetlinks-community with Apache License 2.0 6 votes @Bean public AsyncConfigurer asyncConfigurer() { AsyncUncaughtExceptionHandler handler = new SimpleAsyncUncaughtExceptionHandler(); return new AsyncConfigurer() { @Override @SneakyThrows public Executo...
Source File: JetLinksRedisConfiguration.java From jetlinks-community with Apache License 2.0 6 votes @Bean public ReactiveRedisTemplate<Object, Object> reactiveRedisTemplate( ReactiveRedisConnectionFactory reactiveRedisConnectionFactory, ResourceLoader resourceLoader) { FstSerializationRedisSerializer seri...
Source File: WeixinCorpNotifierTest.java From jetlinks-community with Apache License 2.0 6 votes @Test @Disabled void test(){ WechatCorpProperties properties=new WechatCorpProperties(); properties.setCorpId("corpId"); properties.setCorpSecret("corpSecret"); WechatMessageTemplate messageTemplate=new ...
Source File: QueryParamTranslator.java From jetlinks-community with Apache License 2.0 5 votes public static SearchSourceBuilder convertSearchSourceBuilder(QueryParam queryParam, ElasticSearchIndexMetadata metadata) { SearchSourceBuilder sourceBuilder = new SearchSourceBuilder(); if (queryParam.isPagin...
Source File: JetLinksRedisConfiguration.java From jetlinks-community with Apache License 2.0 6 votes @Bean public ReactiveRedisTemplate<Object, Object> reactiveRedisTemplate( ReactiveRedisConnectionFactory reactiveRedisConnectionFactory, ResourceLoader resourceLoader) { FstSerializationRedisSerializer serializer =...