Package org.apache.tomcat.websocket.pojo
Class PojoEndpointBase
- java.lang.Object
-
- jakarta.websocket.Endpoint
-
- org.apache.tomcat.websocket.pojo.PojoEndpointBase
-
- Direct Known Subclasses:
PojoEndpointClient
,PojoEndpointServer
public abstract class PojoEndpointBase extends Endpoint
Base implementation (client and server have different concrete implementations) of the wrapper that converts a POJO instance into a WebSocket endpoint instance.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PojoEndpointBase(java.util.Map<java.lang.String,java.lang.String> pathParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doOnOpen(Session session, EndpointConfig config)
protected PojoMethodMapping
getMethodMapping()
protected java.lang.Object
getPojo()
void
onClose(Session session, CloseReason closeReason)
Event that is triggered when a session has closed.void
onError(Session session, java.lang.Throwable throwable)
Event that is triggered when a protocol error occurs.protected void
setMethodMapping(PojoMethodMapping methodMapping)
protected void
setPojo(java.lang.Object pojo)
-
-
-
Method Detail
-
doOnOpen
protected final void doOnOpen(Session session, EndpointConfig config)
-
onClose
public final void onClose(Session session, CloseReason closeReason)
Description copied from class:jakarta.websocket.Endpoint
Event that is triggered when a session has closed.
-
onError
public final void onError(Session session, java.lang.Throwable throwable)
Description copied from class:jakarta.websocket.Endpoint
Event that is triggered when a protocol error occurs.
-
getPojo
protected java.lang.Object getPojo()
-
setPojo
protected void setPojo(java.lang.Object pojo)
-
getMethodMapping
protected PojoMethodMapping getMethodMapping()
-
setMethodMapping
protected void setMethodMapping(PojoMethodMapping methodMapping)
-
-