Class SubscriptionWebsocketHandler
- java.lang.Object
-
- org.springframework.web.socket.handler.AbstractWebSocketHandler
-
- org.springframework.web.socket.handler.TextWebSocketHandler
-
- ca.uhn.fhir.jpa.subscription.module.subscriber.websocket.SubscriptionWebsocketHandler
-
- All Implemented Interfaces:
org.springframework.web.socket.WebSocketHandler
public class SubscriptionWebsocketHandler extends org.springframework.web.socket.handler.TextWebSocketHandler implements org.springframework.web.socket.WebSocketHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected WebsocketConnectionValidatormyWebsocketConnectionValidator
-
Constructor Summary
Constructors Constructor Description SubscriptionWebsocketHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterConnectionClosed(org.springframework.web.socket.WebSocketSession theSession, org.springframework.web.socket.CloseStatus theStatus)voidafterConnectionEstablished(org.springframework.web.socket.WebSocketSession theSession)protected voidhandleFailure(Exception theE)protected voidhandleTextMessage(org.springframework.web.socket.WebSocketSession theSession, org.springframework.web.socket.TextMessage theMessage)voidhandleTransportError(org.springframework.web.socket.WebSocketSession theSession, Throwable theException)voidpostConstruct()voidpreDescroy()-
Methods inherited from class org.springframework.web.socket.handler.TextWebSocketHandler
handleBinaryMessage
-
Methods inherited from class org.springframework.web.socket.handler.AbstractWebSocketHandler
handleMessage, handlePongMessage, supportsPartialMessages
-
-
-
-
Field Detail
-
myWebsocketConnectionValidator
@Autowired protected WebsocketConnectionValidator myWebsocketConnectionValidator
-
-
Constructor Detail
-
SubscriptionWebsocketHandler
public SubscriptionWebsocketHandler()
-
-
Method Detail
-
afterConnectionClosed
public void afterConnectionClosed(org.springframework.web.socket.WebSocketSession theSession, org.springframework.web.socket.CloseStatus theStatus) throws Exception
- Specified by:
afterConnectionClosedin interfaceorg.springframework.web.socket.WebSocketHandler- Overrides:
afterConnectionClosedin classorg.springframework.web.socket.handler.AbstractWebSocketHandler- Throws:
Exception
-
afterConnectionEstablished
public void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession theSession) throws Exception
- Specified by:
afterConnectionEstablishedin interfaceorg.springframework.web.socket.WebSocketHandler- Overrides:
afterConnectionEstablishedin classorg.springframework.web.socket.handler.AbstractWebSocketHandler- Throws:
Exception
-
handleFailure
protected void handleFailure(Exception theE)
-
handleTextMessage
protected void handleTextMessage(org.springframework.web.socket.WebSocketSession theSession, org.springframework.web.socket.TextMessage theMessage) throws Exception
- Overrides:
handleTextMessagein classorg.springframework.web.socket.handler.AbstractWebSocketHandler- Throws:
Exception
-
handleTransportError
public void handleTransportError(org.springframework.web.socket.WebSocketSession theSession, Throwable theException) throws Exception
- Specified by:
handleTransportErrorin interfaceorg.springframework.web.socket.WebSocketHandler- Overrides:
handleTransportErrorin classorg.springframework.web.socket.handler.AbstractWebSocketHandler- Throws:
Exception
-
postConstruct
@PostConstruct public void postConstruct()
-
preDescroy
@PreDestroy public void preDescroy()
-
-