public class WebSocketClientRegistry extends Object
Modifier and Type | Field and Description |
---|---|
static String |
WEB_SOCKET_CORRELATION_ID_HEADER_NAME |
Constructor and Description |
---|
WebSocketClientRegistry(MockServerLogger mockServerLogger) |
Modifier and Type | Method and Description |
---|---|
void |
registerForwardCallbackHandler(String webSocketCorrelationId,
WebSocketRequestCallback expectationForwardCallback) |
void |
registerResponseCallbackHandler(String webSocketCorrelationId,
WebSocketResponseCallback expectationResponseCallback) |
void |
reset() |
boolean |
sendClientMessage(String clientId,
HttpRequest httpRequest,
HttpResponse httpResponse) |
void |
unregisterClient(String clientId) |
void |
unregisterForwardCallbackHandler(String webSocketCorrelationId) |
void |
unregisterResponseCallbackHandler(String webSocketCorrelationId) |
public static final String WEB_SOCKET_CORRELATION_ID_HEADER_NAME
public WebSocketClientRegistry(MockServerLogger mockServerLogger)
public void unregisterClient(String clientId)
public void registerResponseCallbackHandler(String webSocketCorrelationId, WebSocketResponseCallback expectationResponseCallback)
public void unregisterResponseCallbackHandler(String webSocketCorrelationId)
public void registerForwardCallbackHandler(String webSocketCorrelationId, WebSocketRequestCallback expectationForwardCallback)
public void unregisterForwardCallbackHandler(String webSocketCorrelationId)
public boolean sendClientMessage(String clientId, HttpRequest httpRequest, HttpResponse httpResponse)
public void reset()
Copyright © 2020. All rights reserved.