Class HttpInvokerHelper
java.lang.Object
de.ikor.sip.foundation.testkit.util.HttpInvokerHelper
Helper class with common methods for rest and soap invokers
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.camel.Exchange
createExchangeResponse
(org.springframework.http.ResponseEntity<String> response, org.apache.camel.CamelContext camelContext) CreateExchange
with a response recovered from test executionprepareHeaders
(org.apache.camel.Exchange exchange) Creates headers for test kit execution
-
Method Details
-
prepareHeaders
public static org.springframework.util.MultiValueMap<String,String> prepareHeaders(org.apache.camel.Exchange exchange) Creates headers for test kit execution- Parameters:
exchange
-Exchange
from which data is extracted- Returns:
- Map with test kit headers
-
createExchangeResponse
public static org.apache.camel.Exchange createExchangeResponse(org.springframework.http.ResponseEntity<String> response, org.apache.camel.CamelContext camelContext) CreateExchange
with a response recovered from test execution- Parameters:
response
-ResponseEntity
asd98 of test executioncamelContext
-CamelContext
- Returns:
Exchange
with response
-