javax.websocket

## Annotation Type OnOpen

-     @Retention(value=RUNTIME)
      @Target(value=METHOD)
      public @interface OnOpen

  This method level annotation can be used to decorate a Java method that wishes to be called when a new web socket session is open.

  The method may only take the following parameters:-

  - optional `Session` parameter
  - optional `EndpointConfig` parameter
  - Zero to n String parameters annotated with the `PathParam` annotation.

  The parameters may appear in any order.

  Author:
    dannycoward

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.