Package org.glassfish.tyrus.core
Class ServerEndpointConfigWrapper
- java.lang.Object
-
- org.glassfish.tyrus.core.ServerEndpointConfigWrapper
-
- All Implemented Interfaces:
EndpointConfig
,ServerEndpointConfig
public class ServerEndpointConfigWrapper extends java.lang.Object implements ServerEndpointConfig
A public class that holds a wrapped ServerEndpointConfig.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.websocket.server.ServerEndpointConfig
ServerEndpointConfig.Builder, ServerEndpointConfig.Configurator
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerEndpointConfig
wrapped
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerEndpointConfig.Configurator
getConfigurator()
Return theServerEndpointConfig.Configurator
this configuration is using.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()
Returns the Class of the endpoint this configuration is configuring.java.util.List<Extension>
getExtensions()
Return the websocket extensions configured.java.lang.String
getPath()
Return the path for this endpoint configuration.java.util.List<java.lang.String>
getSubprotocols()
Return the websocket subprotocols configured.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.ServerEndpointConfig
getWrapped()
Get the wrappedServerEndpointConfig
.
-
-
-
Field Detail
-
wrapped
protected final ServerEndpointConfig wrapped
-
-
Method Detail
-
getEndpointClass
public java.lang.Class<?> getEndpointClass()
Description copied from interface:ServerEndpointConfig
Returns the Class of the endpoint this configuration is configuring. If the endpoint is an annotated endpoint, the value is the class of the Java class annotated with @ServerEndpoint. if the endpoint is a programmatic, the value is the class of the subclass of Endpoint.- Specified by:
getEndpointClass
in interfaceServerEndpointConfig
- Returns:
- the class of the endpoint, annotated or programmatic.
-
getPath
public java.lang.String getPath()
Description copied from interface:ServerEndpointConfig
Return the path for this endpoint configuration. The path is the URI or URI-template (level 1) relative to the websocket root of the server to which the endpoint using this configuration will be mapped. The path is always non-null and always begins with a leading "/".- Specified by:
getPath
in interfaceServerEndpointConfig
- Returns:
- the relative path for this configuration.
-
getSubprotocols
public java.util.List<java.lang.String> getSubprotocols()
Description copied from interface:ServerEndpointConfig
Return the websocket subprotocols configured.- Specified by:
getSubprotocols
in interfaceServerEndpointConfig
- Returns:
- the list of subprotocols, the empty list if none
-
getExtensions
public java.util.List<Extension> getExtensions()
Description copied from interface:ServerEndpointConfig
Return the websocket extensions configured.- Specified by:
getExtensions
in interfaceServerEndpointConfig
- Returns:
- the list of extensions, the empty list if none.
-
getConfigurator
public ServerEndpointConfig.Configurator getConfigurator()
Description copied from interface:ServerEndpointConfig
Return theServerEndpointConfig.Configurator
this configuration is using. If none was set by callingServerEndpointConfig.Builder.configurator(jakarta.websocket.server.ServerEndpointConfig.Configurator)
this methods returns the platform default configurator.- Specified by:
getConfigurator
in interfaceServerEndpointConfig
- Returns:
- the configurator in use.
-
getEncoders
public java.util.List<java.lang.Class<? extends Encoder>> getEncoders()
Description copied from interface:EndpointConfig
Return 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:
getEncoders
in 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:EndpointConfig
Return 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:
getDecoders
in 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:EndpointConfig
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. 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:
getUserProperties
in interfaceEndpointConfig
- Returns:
- a modifiable Map of application data.
-
getWrapped
public ServerEndpointConfig getWrapped()
Get the wrappedServerEndpointConfig
.- Returns:
- the wrapped
ServerEndpointConfig
.
-
-