Class WebSocketSpringInterceptor

java.lang.Object
com.predic8.membrane.core.transport.ws.interceptors.WebSocketSpringInterceptor
All Implemented Interfaces:
WebSocketInterceptorInterface, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class WebSocketSpringInterceptor extends Object implements org.springframework.context.ApplicationContextAware, WebSocketInterceptorInterface
  • Constructor Details

    • WebSocketSpringInterceptor

      public WebSocketSpringInterceptor()
  • Method Details

    • setRefId

      public void setRefId(String refid)
      Description
      Spring bean id of the referenced interceptor.
      Example
      myInterceptor
    • getRefId

      public String getRefId()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • init

      public void init(Router router) throws Exception
      Specified by:
      init in interface WebSocketInterceptorInterface
      Throws:
      Exception
    • handleFrame

      public void handleFrame(WebSocketFrame frame, boolean frameTravelsToRight, WebSocketSender sender) throws Exception
      Specified by:
      handleFrame in interface WebSocketInterceptorInterface
      Throws:
      Exception