Package jakarta.websocket
Class ContainerProvider
- java.lang.Object
-
- jakarta.websocket.ContainerProvider
-
public abstract class ContainerProvider extends java.lang.Object
Use theServiceLoader
mechanism to provide instances of the WebSocket client container.
-
-
Constructor Summary
Constructors Constructor Description ContainerProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract WebSocketContainer
getContainer()
static WebSocketContainer
getWebSocketContainer()
Create a new container used to create outgoing WebSocket connections.
-
-
-
Method Detail
-
getWebSocketContainer
public static WebSocketContainer getWebSocketContainer()
Create a new container used to create outgoing WebSocket connections.- Returns:
- A newly created container.
-
getContainer
protected abstract WebSocketContainer getContainer()
-
-