websocket icon indicating copy to clipboard operation
websocket copied to clipboard

Add @ServerEndpoint#extensions

Open dansiviter opened this issue 5 years ago • 2 comments

To mirror the facility in ServerEndpointConfig.Builder#extensions add ability to define an array of Extensions (via class) which will be created and managed just for this endpoint. e.g.

public @interface ServerEndpoint {
  ...
  public Class<? extends Extension>[] extensions() default {};

dansiviter avatar Apr 02 '20 09:04 dansiviter

This is something we can look into for version 5.1 (or whatever the next post Jakarta EE9 version is going to be called).

I feel we need to take a holistic approach to Extensions, as there's competing demands and usages for them (depending on the audience).

joakime avatar Apr 02 '20 16:04 joakime

There should be an equivalent for ClientEndpoint as well.

markt-asf avatar Apr 16 '20 11:04 markt-asf