Package org.citrusframework.http.message
Class HttpMessageConverter
java.lang.Object
org.citrusframework.http.message.HttpMessageConverter
- All Implemented Interfaces:
MessageConverter<org.springframework.http.HttpEntity<?>,org.springframework.http.HttpEntity<?>, HttpEndpointConfiguration>
public class HttpMessageConverter
extends Object
implements MessageConverter<org.springframework.http.HttpEntity<?>,org.springframework.http.HttpEntity<?>,HttpEndpointConfiguration>
Message converter implementation able to convert HTTP request and response entities to internal message
representation and other way round.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionHttpMessageConverter(org.citrusframework.http.message.CookieConverter cookieConverter) -
Method Summary
Modifier and TypeMethodDescriptionconvertInbound(org.springframework.http.HttpEntity<?> message, HttpEndpointConfiguration endpointConfiguration, TestContext context) org.springframework.http.HttpEntity<?>convertOutbound(Message message, HttpEndpointConfiguration endpointConfiguration, TestContext context) voidconvertOutbound(org.springframework.http.HttpEntity externalMessage, Message internalMessage, HttpEndpointConfiguration endpointConfiguration, TestContext context)
-
Constructor Details
-
HttpMessageConverter
public HttpMessageConverter() -
HttpMessageConverter
public HttpMessageConverter(org.citrusframework.http.message.CookieConverter cookieConverter)
-
-
Method Details
-
convertOutbound
public org.springframework.http.HttpEntity<?> convertOutbound(Message message, HttpEndpointConfiguration endpointConfiguration, TestContext context) - Specified by:
convertOutboundin interfaceMessageConverter<org.springframework.http.HttpEntity<?>,org.springframework.http.HttpEntity<?>, HttpEndpointConfiguration>
-
convertInbound
public HttpMessage convertInbound(org.springframework.http.HttpEntity<?> message, HttpEndpointConfiguration endpointConfiguration, TestContext context) - Specified by:
convertInboundin interfaceMessageConverter<org.springframework.http.HttpEntity<?>,org.springframework.http.HttpEntity<?>, HttpEndpointConfiguration>
-
convertOutbound
public void convertOutbound(org.springframework.http.HttpEntity externalMessage, Message internalMessage, HttpEndpointConfiguration endpointConfiguration, TestContext context) - Specified by:
convertOutboundin interfaceMessageConverter<org.springframework.http.HttpEntity<?>,org.springframework.http.HttpEntity<?>, HttpEndpointConfiguration>
-