Class WebSocketMessageConverter
- java.lang.Object
-
- com.consol.citrus.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 Constructor Description WebSocketMessageConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageconvertInbound(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)
-
-
-
Method Detail
-
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>
-
-