Package io.grpc.servlet.web.websocket
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 Summary
Modifier and TypeFieldDescriptionprotected final io.grpc.Attributes
protected final int
protected final List<? extends io.grpc.ServerStreamTracer.Factory>
protected final io.grpc.internal.ServerTransportListener
protected jakarta.websocket.Session
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractWebSocketServerStream
(io.grpc.internal.ServerTransportListener transportListener, List<? extends io.grpc.ServerStreamTracer.Factory> streamTracerFactories, int maxInboundMessageSize, io.grpc.Attributes attributes) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
abstract void
onMessage
(ByteBuffer message) void
onOpen
(jakarta.websocket.Session websocketSession, jakarta.websocket.EndpointConfig config) protected static io.grpc.Metadata
readHeaders
(ByteBuffer headerPayload) Methods inherited from class jakarta.websocket.Endpoint
onClose, onError
-
Field Details
-
transportListener
protected final io.grpc.internal.ServerTransportListener transportListener -
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
-
onOpen
public void onOpen(jakarta.websocket.Session websocketSession, jakarta.websocket.EndpointConfig config) - Specified by:
onOpen
in classjakarta.websocket.Endpoint
-
onMessage
-
onMessage
- Throws:
IOException
-