Class PojoEndpointBase
java.lang.Object
jakarta.websocket.Endpoint
org.apache.tomcat.websocket.pojo.PojoEndpointBase
- Direct Known Subclasses:
PojoEndpointClient
,PojoEndpointServer
Base implementation (client and server have different concrete implementations) of the wrapper that converts a POJO
instance into a WebSocket endpoint instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
doOnOpen
(Session session, EndpointConfig config) protected PojoMethodMapping
protected Object
getPojo()
final void
onClose
(Session session, CloseReason closeReason) Event that is triggered when a session has closed.final void
Event that is triggered when a protocol error occurs.protected void
setMethodMapping
(PojoMethodMapping methodMapping) protected void
-
Constructor Details
-
PojoEndpointBase
-
-
Method Details
-
doOnOpen
-
onClose
Description copied from class:jakarta.websocket.Endpoint
Event that is triggered when a session has closed. -
onError
Description copied from class:jakarta.websocket.Endpoint
Event that is triggered when a protocol error occurs. -
getPojo
-
setPojo
-
getMethodMapping
-
setMethodMapping
-