当前位置: 首页>>代码示例>>Java>>正文


Java WebSocketHandlerRegistry.addHandler方法代码示例

本文整理汇总了Java中org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry.addHandler方法的典型用法代码示例。如果您正苦于以下问题:Java WebSocketHandlerRegistry.addHandler方法的具体用法?Java WebSocketHandlerRegistry.addHandler怎么用?Java WebSocketHandlerRegistry.addHandler使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry的用法示例。


在下文中一共展示了WebSocketHandlerRegistry.addHandler方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
	registry.addHandler(new HotlineSocketHandler(), "/data");
}
 
开发者ID:PacktPublishing,项目名称:Spring-5.0-Cookbook,代码行数:4,代码来源:ChatSocketConfig.java

示例2: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
	registry.addHandler(slotMoveHandle, "/slot_move");
	registry.addHandler(redisInstallHandle, "/install");
	registry.addHandler(createClusterHandle, "/create");
}
 
开发者ID:yanfanvip,项目名称:RedisClusterManager,代码行数:7,代码来源:WebSocketConfig.java

示例3: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(final WebSocketHandlerRegistry registry) {
    registry.addHandler(handler, "/commands");
}
 
开发者ID:backpaper0,项目名称:slider,代码行数:5,代码来源:WebSocketConfig.java

示例4: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
    final String[] allowedOriginArray = getAllowedOriginArray(configProperties.getWebSocketAllowedOrigins());

    for (PinpointWebSocketHandler handler : handlerRepository.getWebSocketHandlerRepository()) {
        String path = handler.getRequestMapping() + WEBSOCKET_SUFFIX;
        final WebSocketHandlerRegistration webSocketHandlerRegistration = registry.addHandler(handler, path);

        webSocketHandlerRegistration.addInterceptors(new HttpSessionHandshakeInterceptor());
        webSocketHandlerRegistration.addInterceptors(new WebSocketSessionContextPrepareHandshakeInterceptor());
        webSocketHandlerRegistration.setAllowedOrigins(allowedOriginArray);
    }
}
 
开发者ID:naver,项目名称:pinpoint,代码行数:14,代码来源:WebSocketConfig.java

示例5: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
    registry
            .addHandler(terminalSocket(), "/terminal");
}
 
开发者ID:javaterminal,项目名称:cloudterm,代码行数:6,代码来源:WebSocketConfig.java

示例6: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
  registry.addHandler(handler(), "/pointerdetector");
}
 
开发者ID:usmanullah,项目名称:kurento-testing,代码行数:5,代码来源:PointerDetectorApp.java

示例7: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
	registry.addHandler(new JavametricsSpringSocketHandler(), "javametrics-dash/javametrics-socket");
}
 
开发者ID:RuntimeTools,项目名称:javametrics,代码行数:4,代码来源:JavametricsSpringConfigurer.java

示例8: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
  registry.addHandler(groupCallHandler(), "/groupcall");
}
 
开发者ID:jake-kent,项目名称:TLIVideoConferencingv2,代码行数:5,代码来源:GroupCallApp.java

示例9: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
  registry.addHandler(progressHandle(), "/ws/onProgress");
}
 
开发者ID:monkeyWie,项目名称:proxyee-down,代码行数:5,代码来源:WebSocketConfig.java

示例10: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
    registry.addHandler(new WebSocketProxyServerHandler(), "/");
}
 
开发者ID:barrett-rob,项目名称:java-websocket-reverse-proxy,代码行数:5,代码来源:ProxyWebSocketConfigurer.java

示例11: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
    registry.addHandler(chatHandler, "/chat");
}
 
开发者ID:vdhwouter,项目名称:GameNation,代码行数:5,代码来源:WebSocketConfig.java

示例12: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
  registry.addHandler(handler(), "/chroma");
}
 
开发者ID:usmanullah,项目名称:kurento-testing,代码行数:5,代码来源:ChromaApp.java

示例13: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
  registry.addHandler(handler(), "/magicmirror");
}
 
开发者ID:usmanullah,项目名称:kurento-testing,代码行数:5,代码来源:MagicMirrorApp.java

示例14: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
  registry.addHandler(handler(), "/crowddetector");
}
 
开发者ID:usmanullah,项目名称:kurento-testing,代码行数:5,代码来源:CrowdDetectorApp.java

示例15: registerWebSocketHandlers

import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
  registry.addHandler(callHandler(), "/call");
}
 
开发者ID:usmanullah,项目名称:kurento-testing,代码行数:5,代码来源:One2OneCallAdvApp.java


注:本文中的org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry.addHandler方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。