Package | Description |
---|---|
javax.websocket | |
org.apache.tomcat.websocket | |
org.apache.tomcat.websocket.pojo |
This package provides the necessary plumbing to convert an annotated POJO
into a WebSocket
Endpoint . |
Modifier and Type | Method and Description |
---|---|
Session |
WebSocketContainer.connectToServer(Class<?> annotatedEndpointClass,
URI path) |
Session |
WebSocketContainer.connectToServer(Class<? extends Endpoint> endpoint,
ClientEndpointConfig clientEndpointConfiguration,
URI path)
Creates a new connection to the WebSocket.
|
Session |
WebSocketContainer.connectToServer(Endpoint endpoint,
ClientEndpointConfig clientEndpointConfiguration,
URI path)
Creates a new connection to the WebSocket.
|
Session |
WebSocketContainer.connectToServer(Object endpoint,
URI path) |
Session |
SessionException.getSession() |
Modifier and Type | Method and Description |
---|---|
Set<Session> |
Session.getOpenSessions()
Obtain the set of currently open sessions for the local endpoint that
this session is associated with.
|
Modifier and Type | Method and Description |
---|---|
void |
Endpoint.onClose(Session session,
CloseReason closeReason)
Event that is triggered when a session has closed.
|
void |
Endpoint.onError(Session session,
Throwable throwable)
Event that is triggered when a protocol error occurs.
|
abstract void |
Endpoint.onOpen(Session session,
EndpointConfig config)
Event that is triggered when a new session starts.
|
Constructor and Description |
---|
SessionException(String message,
Throwable cause,
Session session) |
Modifier and Type | Class and Description |
---|---|
class |
WsSession |
Modifier and Type | Method and Description |
---|---|
Session |
WsWebSocketContainer.connectToServer(Class<?> annotatedEndpointClass,
URI path) |
Session |
WsWebSocketContainer.connectToServer(Class<? extends Endpoint> clazz,
ClientEndpointConfig clientEndpointConfiguration,
URI path) |
Session |
WsWebSocketContainer.connectToServer(Endpoint endpoint,
ClientEndpointConfig clientEndpointConfiguration,
URI path) |
Session |
WsWebSocketContainer.connectToServer(Object pojo,
URI path) |
Modifier and Type | Method and Description |
---|---|
Set<Session> |
WsSession.getOpenSessions() |
Modifier and Type | Field and Description |
---|---|
protected Session |
PojoMessageHandlerBase.session |
Modifier and Type | Method and Description |
---|---|
protected void |
PojoEndpointBase.doOnOpen(Session session,
EndpointConfig config) |
Set<MessageHandler> |
PojoMethodMapping.getMessageHandlers(Object pojo,
Map<String,String> pathParameters,
Session session,
EndpointConfig config) |
Object[] |
PojoMethodMapping.getOnCloseArgs(Map<String,String> pathParameters,
Session session,
CloseReason closeReason) |
Object[] |
PojoMethodMapping.getOnErrorArgs(Map<String,String> pathParameters,
Session session,
Throwable throwable) |
Object[] |
PojoMethodMapping.getOnOpenArgs(Map<String,String> pathParameters,
Session session,
EndpointConfig config) |
void |
PojoEndpointBase.onClose(Session session,
CloseReason closeReason) |
void |
PojoEndpointBase.onError(Session session,
Throwable throwable) |
void |
PojoEndpointClient.onOpen(Session session,
EndpointConfig config) |
void |
PojoEndpointServer.onOpen(Session session,
EndpointConfig endpointConfig) |
Constructor and Description |
---|
PojoMessageHandlerBase(Object pojo,
Method method,
Session session,
Object[] params,
int indexPayload,
boolean convert,
int indexSession,
long maxMessageSize) |
PojoMessageHandlerPartialBase(Object pojo,
Method method,
Session session,
Object[] params,
int indexPayload,
boolean convert,
int indexBoolean,
int indexSession,
long maxMessageSize) |
PojoMessageHandlerPartialBinary(Object pojo,
Method method,
Session session,
Object[] params,
int indexPayload,
boolean convert,
int indexBoolean,
int indexSession,
long maxMessageSize) |
PojoMessageHandlerPartialText(Object pojo,
Method method,
Session session,
Object[] params,
int indexPayload,
boolean convert,
int indexBoolean,
int indexSession,
long maxMessageSize) |
PojoMessageHandlerWholeBase(Object pojo,
Method method,
Session session,
Object[] params,
int indexPayload,
boolean convert,
int indexSession,
long maxMessageSize) |
PojoMessageHandlerWholeBinary(Object pojo,
Method method,
Session session,
EndpointConfig config,
List<Class<? extends Decoder>> decoderClazzes,
Object[] params,
int indexPayload,
boolean convert,
int indexSession,
boolean isForInputStream,
long maxMessageSize) |
PojoMessageHandlerWholePong(Object pojo,
Method method,
Session session,
Object[] params,
int indexPayload,
boolean convert,
int indexSession) |
PojoMessageHandlerWholeText(Object pojo,
Method method,
Session session,
EndpointConfig config,
List<Class<? extends Decoder>> decoderClazzes,
Object[] params,
int indexPayload,
boolean convert,
int indexSession,
long maxMessageSize) |
Copyright © 2015 JBoss by Red Hat. All rights reserved.