Class FHIRNotificationServiceEndpoint
- java.lang.Object
-
- javax.websocket.Endpoint
-
- com.ibm.fhir.server.notification.websocket.FHIRNotificationServiceEndpoint
-
public class FHIRNotificationServiceEndpoint extends javax.websocket.Endpoint
This class serves as our websocket "endpoint".
-
-
Constructor Summary
Constructors Constructor Description FHIRNotificationServiceEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)
process message which is trying to disconnectjava.lang.String
onMessage(java.lang.String message, javax.websocket.Session session)
Process incoming messagevoid
onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config)
To process new end point client
-
-
-
Method Detail
-
onOpen
public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config)
To process new end point client- Specified by:
onOpen
in classjavax.websocket.Endpoint
- Parameters:
session
-
-
onMessage
public java.lang.String onMessage(java.lang.String message, javax.websocket.Session session)
Process incoming message- Parameters:
message
-session
-- Returns:
-
onClose
public void onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)
process message which is trying to disconnect- Overrides:
onClose
in classjavax.websocket.Endpoint
- Parameters:
session
-closeReason
-
-
-