|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.websocket.Endpoint
org.glassfish.tyrus.AnnotatedEndpoint
public class AnnotatedEndpoint
AnnotatedEndpoint of a class annotated using the WebSocketEndpoint annotations
| Method Summary | |
|---|---|
static AnnotatedEndpoint |
fromClass(Class<?> annotatedClass)
|
static AnnotatedEndpoint |
fromInstance(Object annotatedInstance)
|
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. |
void |
onOpen(Session session)
Developers must implement this method to be notified when a new conversation has just begun. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AnnotatedEndpoint fromClass(Class<?> annotatedClass)
public static AnnotatedEndpoint fromInstance(Object annotatedInstance)
public void onClose(CloseReason closeReason)
Endpoint
onClose in class EndpointcloseReason - the reason the session was closed.public void onError(Throwable thr)
Endpoint
onError in class Endpointthr - the throwable representing the problem.public EndpointConfiguration getEndpointConfiguration()
Endpoint
getEndpointConfiguration in class Endpointpublic void onOpen(Session session)
Endpoint
onOpen in class Endpointsession - the session that has just been activated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||