|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
Deprecated. As of release 12.1.3, replaced by JSR356: Java API for WebSocket
@Target(value=java.lang.annotation.ElementType.TYPE)
@Retention(value=RUNTIME)
@Deprecated
public @interface WebSocket
Annotation used to declare a WebSocket which communicates endpoints with the WebSocket Protocol (RFC6455).
The class annotated by the @WebSocket
annotation must implement the WebSocketListener
interface. The corresponding WebSocketListener
instance is used to handle messages over the WebSocket to which the resource path is matched by the path pattern specified by the pathPatterns
attribute of the @WebSocket
annotation.
Example:
@WebSocket ( pathPatterns = {"/chat/*"}, dispatchPolicy = "ChatWorkManager", timeout = 30, maxConnections = 1000 ) public class MyListener implements WebSocketListener { ... }
WebSocketListener
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |