| Package | Description | 
|---|---|
| jakarta.websocket.server | This package contains all the Jakarta WebSocket APIs used only by server side applications. | 
| org.glassfish.tyrus.core | Core classes. | 
| org.glassfish.tyrus.server | Server implementation. | 
| org.glassfish.tyrus.spi | Tyrus SPI. | 
| Modifier and Type | Method and Description | 
|---|---|
| ServerEndpointConfig | ServerEndpointConfig.Builder. build()Builds the configuration object using the current attributes that have been set on this builder object. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Set<ServerEndpointConfig> | ServerApplicationConfig. getEndpointConfigs(java.util.Set<java.lang.Class<? extends Endpoint>> endpointClasses)Return a set of ServerEndpointConfig instances that the server container will use to deploy the programmatic
 endpoints. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ServerContainer. addEndpoint(ServerEndpointConfig serverConfig) | 
| void | ServerEndpointConfig.Configurator. modifyHandshake(ServerEndpointConfig sec,
               HandshakeRequest request,
               HandshakeResponse response)Called by the container after it has formulated a handshake response resulting from a well-formed handshake
 request. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | TyrusServerEndpointConfigConfiguration  ServerEndpointConfigenhanced
 to offer tyrus specific attributes like maxSessions. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | TyrusServerEndpointConfigurator. modifyHandshake(ServerEndpointConfig sec,
               HandshakeRequest request,
               HandshakeResponse response) | 
| void | TyrusWebSocketEngine. register(ServerEndpointConfig serverConfig,
        java.lang.String contextPath) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Set<ServerEndpointConfig> | TyrusServerConfiguration. getEndpointConfigs(java.util.Set<java.lang.Class<? extends Endpoint>> scanned)Gets all the  ServerEndpointConfigclasses which should be deployed. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | TyrusServerContainer. addEndpoint(ServerEndpointConfig serverEndpointConfig) | 
| abstract void | TyrusServerContainer. register(ServerEndpointConfig serverEndpointConfig) | 
| void | TyrusServerContainer. upgradeHttpToWebSocket(java.lang.Object httpServletRequest,
                      java.lang.Object httpServletResponse,
                      ServerEndpointConfig sec,
                      java.util.Map<java.lang.String,java.lang.String> pathParameters) | 
| Constructor and Description | 
|---|
| TyrusServerConfiguration(java.util.Set<java.lang.Class<?>> classes,
                        java.util.Set<java.lang.Class<?>> dynamicallyAddedClasses,
                        java.util.Set<ServerEndpointConfig> serverEndpointConfigs,
                        ErrorCollector errorCollector)Create new  TyrusServerConfiguration. | 
| TyrusServerConfiguration(java.util.Set<java.lang.Class<?>> classes,
                        java.util.Set<ServerEndpointConfig> serverEndpointConfigs)Create new  TyrusServerConfiguration. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | WebSocketEngine. register(ServerEndpointConfig serverConfig,
        java.lang.String contextPath)Register  ServerEndpointConfig. | 
Copyright © 2012–2020 Oracle Corporation. All rights reserved.