public abstract class WebSocketUtil extends Object
Constructor and Description |
---|
WebSocketUtil() |
Modifier and Type | Method and Description |
---|---|
static ProgramFile |
getProgramFile(Resource resource) |
static BMap |
getQueryParams(Context context) |
static Annotation |
getServiceConfigAnnotation(Service service,
String pkgPath) |
static void |
getWebSocketError(Context context,
CallableUnitCallback callback,
io.netty.channel.ChannelFuture webSocketChannelFuture,
String message) |
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 |
populateEndpoint(javax.websocket.Session session,
BStruct webSocketEndpoint) |
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 populateEndpoint(javax.websocket.Session session, BStruct webSocketEndpoint)
public static void getWebSocketError(Context context, CallableUnitCallback callback, io.netty.channel.ChannelFuture webSocketChannelFuture, String message) throws InterruptedException
InterruptedException
Copyright © 2018 WSO2. All rights reserved.