|
Annotation Types Summary |
| WebSocketClose |
This method level annotation can be used to decorate a Java method that wishes to be called when a
web socket session has closed. |
| WebSocketEndpoint |
This class level annotation declares that the class it decorates
is a web socket endpoint. |
| WebSocketError |
This method level annotation can be used to decorate a Java method that wishes to be called in order
to handle errors. |
| WebSocketMessage |
This method level annotation can be used to make a Java method receive incoming web socket messages. |
| WebSocketOpen |
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. |
| WebSocketPathParam |
This annotation may be used to annotate method parameters on web socket POJOs
where a URI-template has been used in the path-mapping of the WebSocketEndpoint
annotation. For example:-
* For example:
 @WebSocketEndpoint("/bookings/{guest-id}");
public class BookingServer {
  @WebSocketMessage
 public void processBookingRequest(@WebSocketPathParam("guest-id") String guestID, String message, Session session) {
   // process booking from the given guest here
 }
}
|