Package org.mockserver.callback
Class WebSocketClientRegistry
- java.lang.Object
-
- org.mockserver.callback.WebSocketClientRegistry
-
public class WebSocketClientRegistry extends Object
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description static String
WEB_SOCKET_CORRELATION_ID_HEADER_NAME
-
Constructor Summary
Constructors Constructor Description WebSocketClientRegistry(MockServerLogger mockServerLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
WEB_SOCKET_CORRELATION_ID_HEADER_NAME
public static final String WEB_SOCKET_CORRELATION_ID_HEADER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebSocketClientRegistry
public WebSocketClientRegistry(MockServerLogger mockServerLogger)
-
-
Method Detail
-
unregisterClient
public void unregisterClient(String clientId)
-
registerResponseCallbackHandler
public void registerResponseCallbackHandler(String webSocketCorrelationId, WebSocketResponseCallback expectationResponseCallback)
-
unregisterResponseCallbackHandler
public void unregisterResponseCallbackHandler(String webSocketCorrelationId)
-
registerForwardCallbackHandler
public void registerForwardCallbackHandler(String webSocketCorrelationId, WebSocketRequestCallback expectationForwardCallback)
-
unregisterForwardCallbackHandler
public void unregisterForwardCallbackHandler(String webSocketCorrelationId)
-
sendClientMessage
public boolean sendClientMessage(String clientId, HttpRequest httpRequest, HttpResponse httpResponse)
-
reset
public void reset()
-
-