Class 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 Detail

      • PojoEndpointBase

        protected PojoEndpointBase​(java.util.Map<java.lang.String,​java.lang.String> pathParameters)
    • Method Detail

      • 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.
        Overrides:
        onClose in class Endpoint
        Parameters:
        session - The session
        closeReason - Why the session was 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.
        Overrides:
        onError in class Endpoint
        Parameters:
        session - The session.
        throwable - The exception.
      • getPojo

        protected java.lang.Object getPojo()
      • setPojo

        protected void setPojo​(java.lang.Object pojo)
      • setMethodMapping

        protected void setMethodMapping​(PojoMethodMapping methodMapping)