Class UstraWebSocketConfigurer
java.lang.Object
com.gsitm.ustra.web.socket.config.UstraWebSocketConfigurer
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.springframework.web.socket.config.annotation.WebSocketConfigurer>
public class UstraWebSocketConfigurer
extends Object
implements org.springframework.beans.factory.FactoryBean<org.springframework.web.socket.config.annotation.WebSocketConfigurer>
Web socket 설정
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionUstraWebSocketConfigurer(org.springframework.web.socket.WebSocketHandler websocketHandler, String... paths) 웹 소켓 설정 생성자 -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]allowed originsprotected voidconfigureSockJsServiceRegistration(org.springframework.web.socket.config.annotation.SockJsServiceRegistration registration) SockJsServiceRegistration configureprotected voidconfigureWebSocketHandlerRegistration(org.springframework.web.socket.config.annotation.WebSocketHandlerRegistration registration) WebSocketHandlerRegistration configureorg.springframework.web.socket.config.annotation.WebSocketConfigurerClass<?>String[]getPaths()pathorg.springframework.web.socket.WebSocketHandler웹 소켓 핸들러 반환protected org.springframework.web.socket.server.HandshakeHandlerhandshake handlerprotected org.springframework.web.socket.server.HandshakeInterceptor[]interceptorsvoidsetHandshakeHandler(org.springframework.web.socket.server.HandshakeHandler handshankeHandler) HandshakeHandler 설정protected booleansocketJs()socket js 여부Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
UstraWebSocketConfigurer
public UstraWebSocketConfigurer(@Nonnull org.springframework.web.socket.WebSocketHandler websocketHandler, String... paths) 웹 소켓 설정 생성자- Parameters:
websocketHandler- WebSocketHandlerpaths- 제공 경로
-
-
Method Details
-
getWebSocketHandler
public org.springframework.web.socket.WebSocketHandler getWebSocketHandler()웹 소켓 핸들러 반환- Returns:
-
setHandshakeHandler
@Autowired(required=false) public void setHandshakeHandler(org.springframework.web.socket.server.HandshakeHandler handshankeHandler) HandshakeHandler 설정- Parameters:
handshankeHandler-
-
handshakeHandler
protected org.springframework.web.socket.server.HandshakeHandler handshakeHandler()handshake handler- Returns:
-
allowedOrigins
allowed origins- Returns:
-
interceptors
protected org.springframework.web.socket.server.HandshakeInterceptor[] interceptors()interceptors- Returns:
-
socketJs
protected boolean socketJs()socket js 여부- Returns:
-
getPaths
path- Returns:
-
configureWebSocketHandlerRegistration
protected void configureWebSocketHandlerRegistration(org.springframework.web.socket.config.annotation.WebSocketHandlerRegistration registration) WebSocketHandlerRegistration configure- Parameters:
registration-
-
configureSockJsServiceRegistration
protected void configureSockJsServiceRegistration(org.springframework.web.socket.config.annotation.SockJsServiceRegistration registration) SockJsServiceRegistration configure- Parameters:
registration-
-
getObject
public org.springframework.web.socket.config.annotation.WebSocketConfigurer getObject() throws Exception- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.web.socket.config.annotation.WebSocketConfigurer>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.web.socket.config.annotation.WebSocketConfigurer>
-