public abstract class WebSocketUtil extends Object
Constructor and Description |
---|
WebSocketUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
executeOnOpenResource(Resource onOpenResource,
BStruct webSocketEndpoint,
org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection) |
static ProgramFile |
getProgramFile(Resource resource) |
static Annotation |
getServiceConfigAnnotation(Service service,
String pkgPath) |
static void |
handleHandshake(WebSocketService wsService,
WebSocketConnectionManager connectionManager,
io.netty.handler.codec.http.HttpHeaders headers,
org.wso2.transport.http.netty.contract.websocket.WebSocketInitMessage initMessage,
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,
BStruct webSocketEndpoint) |
static void |
readFirstFrame(org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection,
BStruct webSocketConnector) |
static String |
refactorUri(String uri)
Refactor the given URI.
|
public static ProgramFile getProgramFile(Resource resource)
public static Annotation getServiceConfigAnnotation(Service service, String pkgPath)
public static void handleHandshake(WebSocketService wsService, WebSocketConnectionManager connectionManager, io.netty.handler.codec.http.HttpHeaders headers, org.wso2.transport.http.netty.contract.websocket.WebSocketInitMessage initMessage, Context context, CallableUnitCallback callback)
public static void executeOnOpenResource(Resource onOpenResource, BStruct webSocketEndpoint, org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection)
public static void populateEndpoint(org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection, BStruct webSocketEndpoint)
public static void handleWebSocketCallback(Context context, CallableUnitCallback callback, io.netty.channel.ChannelFuture webSocketChannelFuture)
public static String refactorUri(String uri)
uri
- URI to refactor.public static void readFirstFrame(org.wso2.transport.http.netty.contract.websocket.WebSocketConnection webSocketConnection, BStruct webSocketConnector)
Copyright © 2018 WSO2. All rights reserved.