本文整理汇总了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");
}
示例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");
}
示例3: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(final WebSocketHandlerRegistry registry) {
registry.addHandler(handler, "/commands");
}
示例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);
}
}
示例5: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry
.addHandler(terminalSocket(), "/terminal");
}
示例6: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(handler(), "/pointerdetector");
}
示例7: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(new JavametricsSpringSocketHandler(), "javametrics-dash/javametrics-socket");
}
示例8: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(groupCallHandler(), "/groupcall");
}
示例9: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(progressHandle(), "/ws/onProgress");
}
示例10: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(new WebSocketProxyServerHandler(), "/");
}
示例11: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(chatHandler, "/chat");
}
示例12: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(handler(), "/chroma");
}
示例13: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(handler(), "/magicmirror");
}
示例14: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(handler(), "/crowddetector");
}
示例15: registerWebSocketHandlers
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry; //导入方法依赖的package包/类
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(callHandler(), "/call");
}