Package org.glassfish.tyrus.core
Class ServerEndpointConfigWrapper
- java.lang.Object
-
- org.glassfish.tyrus.core.ServerEndpointConfigWrapper
-
- All Implemented Interfaces:
EndpointConfig,jakarta.websocket.server.ServerEndpointConfig
public class ServerEndpointConfigWrapper extends java.lang.Object implements jakarta.websocket.server.ServerEndpointConfigA public class that holds a wrapped ServerEndpointConfig.
-
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.websocket.server.ServerEndpointConfigwrapped
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.websocket.server.ServerEndpointConfig.ConfiguratorgetConfigurator()java.util.List<java.lang.Class<? extends Decoder>>getDecoders()Return the Decoder implementation classes configured.java.util.List<java.lang.Class<? extends Encoder>>getEncoders()Return the Encoder implementation classes configured.java.lang.Class<?>getEndpointClass()java.util.List<Extension>getExtensions()java.lang.StringgetPath()java.util.List<java.lang.String>getSubprotocols()java.util.Map<java.lang.String,java.lang.Object>getUserProperties()This method returns a modifiable Map that the developer may use to store application specific information relating to the endpoint that uses this configuration instance.jakarta.websocket.server.ServerEndpointConfiggetWrapped()Get the wrappedServerEndpointConfig.
-
-
-
Method Detail
-
getEndpointClass
public java.lang.Class<?> getEndpointClass()
- Specified by:
getEndpointClassin interfacejakarta.websocket.server.ServerEndpointConfig
-
getPath
public java.lang.String getPath()
- Specified by:
getPathin interfacejakarta.websocket.server.ServerEndpointConfig
-
getSubprotocols
public java.util.List<java.lang.String> getSubprotocols()
- Specified by:
getSubprotocolsin interfacejakarta.websocket.server.ServerEndpointConfig
-
getExtensions
public java.util.List<Extension> getExtensions()
- Specified by:
getExtensionsin interfacejakarta.websocket.server.ServerEndpointConfig
-
getConfigurator
public jakarta.websocket.server.ServerEndpointConfig.Configurator getConfigurator()
- Specified by:
getConfiguratorin interfacejakarta.websocket.server.ServerEndpointConfig
-
getEncoders
public java.util.List<java.lang.Class<? extends Encoder>> getEncoders()
Description copied from interface:EndpointConfigReturn the Encoder implementation classes configured. These will be instantiated by the container to encode custom objects passed into the send() methods on remote endpoints.- Specified by:
getEncodersin interfaceEndpointConfig- Returns:
- the encoder implementation classes, an empty list if none.
-
getDecoders
public java.util.List<java.lang.Class<? extends Decoder>> getDecoders()
Description copied from interface:EndpointConfigReturn the Decoder implementation classes configured. These will be instantiated by the container to decode incoming messages into the expected custom objects onMessageHandler.Whole.onMessage(Object)callbacks.- Specified by:
getDecodersin interfaceEndpointConfig- Returns:
- the decoder implementation classes, the empty list if none.
-
getUserProperties
public java.util.Map<java.lang.String,java.lang.Object> getUserProperties()
Description copied from interface:EndpointConfigThis method returns a modifiable Map that the developer may use to store application specific information relating to the endpoint that uses this configuration instance. Web socket applications running on distributed implementations of the web container should make any application specific objects stored here java.io.Serializable, or the object may not be recreated after a failover.- Specified by:
getUserPropertiesin interfaceEndpointConfig- Returns:
- a modifiable Map of application data.
-
getWrapped
public jakarta.websocket.server.ServerEndpointConfig getWrapped()
Get the wrappedServerEndpointConfig.- Returns:
- the wrapped
ServerEndpointConfig.
-
-