Class AbstractWebSocketServerStream

java.lang.Object
jakarta.websocket.Endpoint
io.grpc.servlet.web.websocket.AbstractWebSocketServerStream
Direct Known Subclasses:
MultiplexedWebSocketServerStream, WebSocketServerStream

public abstract class AbstractWebSocketServerStream extends jakarta.websocket.Endpoint
  • Field Details

    • transportListener

      protected final io.grpc.internal.ServerTransportListener transportListener
    • streamTracerFactories

      protected final List<? extends io.grpc.ServerStreamTracer.Factory> streamTracerFactories
    • maxInboundMessageSize

      protected final int maxInboundMessageSize
    • attributes

      protected final io.grpc.Attributes attributes
    • websocketSession

      protected jakarta.websocket.Session websocketSession
  • Constructor Details

    • AbstractWebSocketServerStream

      protected AbstractWebSocketServerStream(io.grpc.internal.ServerTransportListener transportListener, List<? extends io.grpc.ServerStreamTracer.Factory> streamTracerFactories, int maxInboundMessageSize, io.grpc.Attributes attributes)
  • Method Details

    • readHeaders

      protected static io.grpc.Metadata readHeaders(ByteBuffer headerPayload)
    • onOpen

      public void onOpen(jakarta.websocket.Session websocketSession, jakarta.websocket.EndpointConfig config)
      Specified by:
      onOpen in class jakarta.websocket.Endpoint
    • onMessage

      public abstract void onMessage(String message)
    • onMessage

      public abstract void onMessage(ByteBuffer message) throws IOException
      Throws:
      IOException