public class AnnotatedEndpoint
extends javax.websocket.Endpoint
| Modifier and Type | Method and Description |
|---|---|
static AnnotatedEndpoint |
fromClass(Class<?> annotatedClass,
ComponentProviderService componentProvider,
boolean isServerEndpoint,
ErrorCollector collector)
Create
AnnotatedEndpoint from class. |
static AnnotatedEndpoint |
fromInstance(Object annotatedInstance,
ComponentProviderService componentProvider,
boolean isServerEndpoint,
ErrorCollector collector)
Create
AnnotatedEndpoint from instance. |
javax.websocket.EndpointConfig |
getEndpointConfig() |
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason) |
void |
onError(javax.websocket.Session session,
Throwable thr) |
void |
onOpen(javax.websocket.Session session,
javax.websocket.EndpointConfig configuration) |
public static AnnotatedEndpoint fromClass(Class<?> annotatedClass, ComponentProviderService componentProvider, boolean isServerEndpoint, ErrorCollector collector) throws javax.websocket.DeploymentException
AnnotatedEndpoint from class.annotatedClass - annotated class.componentProvider - used for instantiating.isServerEndpoint - true iff annotated endpoint is deployed on server side.collector - error collector.javax.websocket.DeploymentException - TODO removepublic static AnnotatedEndpoint fromInstance(Object annotatedInstance, ComponentProviderService componentProvider, boolean isServerEndpoint, ErrorCollector collector) throws javax.websocket.DeploymentException
AnnotatedEndpoint from instance.annotatedInstance - annotated instance.componentProvider - used for instantiating.isServerEndpoint - true iff annotated endpoint is deployed on server side.collector - error collector.javax.websocket.DeploymentException - TODO removepublic void onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason)
onClose in class javax.websocket.Endpointpublic void onError(javax.websocket.Session session,
Throwable thr)
onError in class javax.websocket.Endpointpublic javax.websocket.EndpointConfig getEndpointConfig()
public void onOpen(javax.websocket.Session session,
javax.websocket.EndpointConfig configuration)
onOpen in class javax.websocket.EndpointCopyright © 2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.