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

    Constructors
    Constructor
    Description
    UstraWebSocketConfigurer(org.springframework.web.socket.WebSocketHandler websocketHandler, String... paths)
    웹 소켓 설정 생성자
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String[]
    allowed origins
    protected void
    configureSockJsServiceRegistration(org.springframework.web.socket.config.annotation.SockJsServiceRegistration registration)
    SockJsServiceRegistration configure
    protected void
    configureWebSocketHandlerRegistration(org.springframework.web.socket.config.annotation.WebSocketHandlerRegistration registration)
    WebSocketHandlerRegistration configure
    org.springframework.web.socket.config.annotation.WebSocketConfigurer
     
     
    path
    org.springframework.web.socket.WebSocketHandler
    웹 소켓 핸들러 반환
    protected org.springframework.web.socket.server.HandshakeHandler
    handshake handler
    protected org.springframework.web.socket.server.HandshakeInterceptor[]
    interceptors
    void
    setHandshakeHandler(org.springframework.web.socket.server.HandshakeHandler handshankeHandler)
    HandshakeHandler 설정
    protected boolean
    socket js 여부

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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 - WebSocketHandler
      paths - 제공 경로
  • 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

      protected String[] allowedOrigins()
      allowed origins
      Returns:
    • interceptors

      protected org.springframework.web.socket.server.HandshakeInterceptor[] interceptors()
      interceptors
      Returns:
    • socketJs

      protected boolean socketJs()
      socket js 여부
      Returns:
    • getPaths

      public String[] 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:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.springframework.web.socket.config.annotation.WebSocketConfigurer>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.web.socket.config.annotation.WebSocketConfigurer>