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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRefId()voidhandleFrame(WebSocketFrame frame, boolean frameTravelsToRight, WebSocketSender sender) voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) void
-
Constructor Details
-
WebSocketSpringInterceptor
public WebSocketSpringInterceptor()
-
-
Method Details
-
setRefId
- Description
- Spring bean id of the referenced interceptor.
- Example
- myInterceptor
-
getRefId
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
init
- Specified by:
initin interfaceWebSocketInterceptorInterface- Throws:
Exception
-
handleFrame
public void handleFrame(WebSocketFrame frame, boolean frameTravelsToRight, WebSocketSender sender) throws Exception - Specified by:
handleFramein interfaceWebSocketInterceptorInterface- Throws:
Exception
-