comment passer un paramètre à la méthode @OnOpen avec les Websockets JEE7,

J'ai ce code

@ServerEndpoint(value = "/websocket")
public class Service {
    private String clientId; 
    @OnOpen
    public void init(Session session) throws IOException {
         //opening a websocket
         //get clientId
         clientId = //Code here to get initialization parameter.
    }

}

Comment puis-je obtenir les paramètres d'initialisation de la part du client d'ouverture de la socket?.

source d'informationauteur Leo