public abstract class Endpoint extends Object
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
abstract EndpointConfiguration |
getEndpointConfiguration()
Developers must provide an EndpointConfiguration so that
the container it is deployed in can configure it.
|
void |
onClose(CloseReason closeReason)
This method is called when the session with the client is terminated.
|
void |
onError(Throwable thr)
Developers may implement this method when the web socket session
creates some kind of error that is not modeled in the web socket protocol.
|
abstract void |
onOpen(Session session)
Developers must implement this method to be notified when a new conversation has
just begun.
|
public abstract EndpointConfiguration getEndpointConfiguration()
public abstract void onOpen(Session session)
session
- the session that has just been activated.public void onClose(CloseReason closeReason)
closeReason
- the reason the session was closed.public void onError(Throwable thr)
thr
- the throwable representing the problem.Copyright © 2013. All Rights Reserved.