public class WebSocketUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
executeOnOpenResource(Resource onOpenResource,
BMap<String,BValue> webSocketEndpoint,
org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection) |
static int |
findIdleTimeoutInSeconds(Struct annAttrIdleTimeout) |
static int |
findMaxFrameSize(Struct annotation) |
static String[] |
findNegotiableSubProtocols(Struct annAttrSubProtocols) |
static ProgramFile |
getProgramFile(Resource resource) |
static void |
handleHandshake(WebSocketService wsService,
WebSocketConnectionManager connectionManager,
io.netty.handler.codec.http.HttpHeaders headers,
org.wso2.transport.http.netty.contract.websocket.WebSocketHandshaker webSocketHandshaker,
Context context,
CallableUnitCallback callback) |
static void |
handleWebSocketCallback(Context context,
CallableUnitCallback callback,
io.netty.channel.ChannelFuture webSocketChannelFuture) |
static void |
populateEndpoint(org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection,
BMap<String,BValue> webSocketEndpoint) |
static void |
readFirstFrame(org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection,
BMap<String,BValue> webSocketConnector) |
static void |
setListenerOpenField(WebSocketOpenConnectionInfo connectionInfo) |
public static ProgramFile getProgramFile(Resource resource)
public static void handleHandshake(WebSocketService wsService, WebSocketConnectionManager connectionManager, io.netty.handler.codec.http.HttpHeaders headers, org.wso2.transport.http.netty.contract.websocket.WebSocketHandshaker webSocketHandshaker, Context context, CallableUnitCallback callback)
public static void executeOnOpenResource(Resource onOpenResource, BMap<String,BValue> webSocketEndpoint, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)
public static void populateEndpoint(org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection, BMap<String,BValue> webSocketEndpoint)
public static void handleWebSocketCallback(Context context, CallableUnitCallback callback, io.netty.channel.ChannelFuture webSocketChannelFuture)
public static void readFirstFrame(org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection, BMap<String,BValue> webSocketConnector)
public static void setListenerOpenField(WebSocketOpenConnectionInfo connectionInfo) throws IllegalAccessException
IllegalAccessException
public static int findMaxFrameSize(Struct annotation)
public static int findIdleTimeoutInSeconds(Struct annAttrIdleTimeout)
Copyright © 2019 WSO2. All rights reserved.