|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@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
Optional Element Summary | |
---|---|
String |
dispatchPolicy
Deprecated. The dispatch policy on which the events will be fired. |
int |
maxConnections
Deprecated. Get the maximum open connections on this WebSocket. |
int |
maxMessageSize
Deprecated. Get the maximum message size this WebSocket can handle. |
String[] |
pathPatterns
Deprecated. Get the path pattern defined for this WebSocket. |
int |
timeout
Deprecated. Get the timeout value for the WebSocket. |
public abstract String[] pathPatterns
Get the path pattern defined for this WebSocket. The default resource path is "/ws/*".
The following syntax is used to define path patterns:
public abstract String dispatchPolicy
public abstract int timeout
public abstract int maxMessageSize
ClosingMessage.SC_MESSAGE_TOO_BIG
.
The default value is 4080 bytes.
public abstract int maxConnections
|
Copyright 1996, 2014, 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.1.3) Part Number E41849-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |