| 
 | 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweblogic.websocket.WebSocketAdapter
@Deprecated public class WebSocketAdapter
Provides a convenient implementation of the WebSocketListener 
 interface. Almost all of the callback methods are implemented as empty methods in this
 class. Applications can extend this class to override callback methods they
 care about.
WebSocketListener| Field Summary | |
|---|---|
| protected  WebSocketContext | contextDeprecated. | 
| Constructor Summary | |
|---|---|
| WebSocketAdapter()Deprecated. Constructs an instance of WebSocketAdapter. | |
| Method Summary | |
|---|---|
|  boolean | accept(WSHandshakeRequest request,
       WSHandshakeResponse response)Deprecated. This method always return true. | 
|  void | destroy()Deprecated. Do nothing. | 
| protected  WebSocketContext | getWebSocketContext()Deprecated. Get a WebSocketContextinstance associated with thisWebSocketAdapter. | 
|  void | init(WebSocketContext context)Deprecated. This method is called after the instance of this interface is created. | 
|  void | onClose(WebSocketConnection connection,
        ClosingMessage msg)Deprecated. Empty implementation for this callback method. | 
|  void | onError(WebSocketConnection connection,
        Throwable error)Deprecated. Empty implementation for this callback method. | 
|  void | onFragment(WebSocketConnection connection,
           boolean last,
           byte[] payload)Deprecated. Empty implementation for this callback method. | 
|  void | onFragment(WebSocketConnection connection,
           boolean last,
           String payload)Deprecated. Empty implementation for this callback method. | 
|  void | onMessage(WebSocketConnection connection,
          byte[] payload)Deprecated. Empty implementation for this callback method. | 
|  void | onMessage(WebSocketConnection connection,
          String payload)Deprecated. Empty implementation for this callback method. | 
|  void | onOpen(WebSocketConnection connection)Deprecated. Empty implementation for this callback method. | 
|  void | onPing(WebSocketConnection connection,
       byte[] payload)Deprecated. Empty implementation for this callback method. | 
|  void | onPong(WebSocketConnection connection,
       byte[] payload)Deprecated. Empty implementation for this callback method. | 
|  void | onTimeout(WebSocketConnection connection)Deprecated. Empty implementation for this callback method. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected WebSocketContext context
| Constructor Detail | 
|---|
public WebSocketAdapter()
WebSocketAdapter.
| Method Detail | 
|---|
protected WebSocketContext getWebSocketContext()
WebSocketContext instance associated with this 
 WebSocketAdapter.
public void init(WebSocketContext context)
WebSocketListener
init in interface WebSocketListenercontext - the WebSocketContext associated with the WebSocket that 
                is listened on by this listener.WebSocketListener.init(weblogic.websocket.WebSocketContext)public void destroy()
destroy in interface WebSocketListenerWebSocketListener.destroy()
public boolean accept(WSHandshakeRequest request,
                      WSHandshakeResponse response)
accept in interface WebSocketListenerrequest - the WebSocket opening handshake request.response - the WebSocket opening handshake response.
WebSocketListener.accept(WSHandshakeRequest, WSHandshakeResponse)public void onOpen(WebSocketConnection connection)
onOpen in interface WebSocketListenerconnection - the WebSocket connection is established.WebSocketListener.onOpen(weblogic.websocket.WebSocketConnection)
public void onMessage(WebSocketConnection connection,
                      String payload)
onMessage in interface WebSocketListenerconnection - the WebSocket connection receiving the message.payload - the received payload from the TEXT data frame.WebSocketListener.onMessage(WebSocketConnection, String)
public void onMessage(WebSocketConnection connection,
                      byte[] payload)
onMessage in interface WebSocketListenerconnection - the WebSocket connection receiving the message.payload - the received payload from the BINARY data frame.WebSocketListener.onMessage(WebSocketConnection, byte[])
public void onFragment(WebSocketConnection connection,
                       boolean last,
                       String payload)
onFragment in interface WebSocketListenerconnection - the WebSocket connection receiving the message.last - indicates if this is the last fragment to be received.payload - the received text payload from the CONTINUATION data frame.WebSocketListener.onFragment(WebSocketConnection, boolean, String)
public void onFragment(WebSocketConnection connection,
                       boolean last,
                       byte[] payload)
onFragment in interface WebSocketListenerconnection - the WebSocket connection receiving the message.last - indicates if this is the last fragment to be received.payload - the received binary payload from the CONTINUATION data 
                frame.WebSocketListener.onFragment(WebSocketConnection, boolean, byte[])
public void onPing(WebSocketConnection connection,
                   byte[] payload)
onPing in interface WebSocketListenerconnection - the WebSocket connection receiving the PING control frame.payload - the received payload from the PING control frame.WebSocketListener.onPing(WebSocketConnection, byte[])
public void onPong(WebSocketConnection connection,
                   byte[] payload)
onPong in interface WebSocketListenerconnection - the WebSocket connection receiving the PONG control frame.payload - the received payload from the PONG control frame.WebSocketListener.onPong(WebSocketConnection, byte[])public void onTimeout(WebSocketConnection connection)
onTimeout in interface WebSocketListenerconnection - the WebSocket connection that timed out.WebSocketListener.onTimeout(weblogic.websocket.WebSocketConnection)
public void onError(WebSocketConnection connection,
                    Throwable error)
onError in interface WebSocketListenerconnection - the WebSocket connection having difficulty.error - the error encountered in the container.WebSocketListener.onError(WebSocketConnection, Throwable)
public void onClose(WebSocketConnection connection,
                    ClosingMessage msg)
onClose in interface WebSocketListenerconnection - the WebSocket connection receiving the CLOSE control frame.msg - the close message received.WebSocketListener.onClose(WebSocketConnection, ClosingMessage)| 
 | 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||