Class WebSocketMessageConverter
java.lang.Object
org.citrusframework.websocket.message.WebSocketMessageConverter
- All Implemented Interfaces:
MessageConverter<org.springframework.web.socket.WebSocketMessage,org.springframework.web.socket.WebSocketMessage, WebSocketEndpointConfiguration>
public class WebSocketMessageConverter
extends Object
implements MessageConverter<org.springframework.web.socket.WebSocketMessage,org.springframework.web.socket.WebSocketMessage,WebSocketEndpointConfiguration>
Message converter able to convert internal and external message representations for web socket messages. Converter
converts inbound and outbound messages.
- Since:
- 2.3
- Author:
- Martin Maher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertInbound(org.springframework.web.socket.WebSocketMessage externalMessage, WebSocketEndpointConfiguration endpointConfiguration, TestContext context) org.springframework.web.socket.WebSocketMessageconvertOutbound(Message message, WebSocketEndpointConfiguration endpointConfiguration, TestContext context) voidconvertOutbound(org.springframework.web.socket.WebSocketMessage externalMessage, Message internalMessage, WebSocketEndpointConfiguration endpointConfiguration, TestContext context)
-
Constructor Details
-
WebSocketMessageConverter
public WebSocketMessageConverter()
-
-
Method Details
-
convertOutbound
public org.springframework.web.socket.WebSocketMessage convertOutbound(Message message, WebSocketEndpointConfiguration endpointConfiguration, TestContext context) - Specified by:
convertOutboundin interfaceMessageConverter<org.springframework.web.socket.WebSocketMessage,org.springframework.web.socket.WebSocketMessage, WebSocketEndpointConfiguration>
-
convertOutbound
public void convertOutbound(org.springframework.web.socket.WebSocketMessage externalMessage, Message internalMessage, WebSocketEndpointConfiguration endpointConfiguration, TestContext context) - Specified by:
convertOutboundin interfaceMessageConverter<org.springframework.web.socket.WebSocketMessage,org.springframework.web.socket.WebSocketMessage, WebSocketEndpointConfiguration>
-
convertInbound
public Message convertInbound(org.springframework.web.socket.WebSocketMessage externalMessage, WebSocketEndpointConfiguration endpointConfiguration, TestContext context) - Specified by:
convertInboundin interfaceMessageConverter<org.springframework.web.socket.WebSocketMessage,org.springframework.web.socket.WebSocketMessage, WebSocketEndpointConfiguration>
-