Commit a419ba0bdc7725f1cee2663e0b4b2a0202e6ac8c
- Diff rendering mode:
- inline
- side by side
spring-integration-http/src/main/java/org/springframework/integration/http/outbound/HttpRequestExecutingMessageHandler.java
(7 / 2)
|   | |||
| 1 | 1 | /* | |
| 2 | * Copyright 2002-2010 the original author or authors. | ||
| 2 | * Copyright 2002-2011 the original author or authors. | ||
| 3 | 3 | * | |
| 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | * you may not use this file except in compliance with the License. | |
| … | … | ||
| 29 | 29 | ||
| 30 | 30 | import org.springframework.beans.factory.BeanFactory; | |
| 31 | 31 | import org.springframework.context.expression.BeanFactoryResolver; | |
| 32 | import org.springframework.context.expression.MapAccessor; | ||
| 32 | 33 | import org.springframework.core.convert.ConversionService; | |
| 33 | 34 | import org.springframework.expression.Expression; | |
| 34 | 35 | import org.springframework.expression.ExpressionParser; | |
| … | … | ||
| 97 | 97 | ||
| 98 | 98 | private final RestTemplate restTemplate; | |
| 99 | 99 | ||
| 100 | private final StandardEvaluationContext evaluationContext = new StandardEvaluationContext(); | ||
| 100 | private final StandardEvaluationContext evaluationContext; | ||
| 101 | 101 | ||
| 102 | 102 | ||
| 103 | 103 | /** | |
| … | … | ||
| 123 | 123 | this.restTemplate = (restTemplate == null ? new RestTemplate() : restTemplate); | |
| 124 | 124 | this.restTemplate.getMessageConverters().add(0, new SerializingHttpMessageConverter()); | |
| 125 | 125 | this.uri = uri; | |
| 126 | StandardEvaluationContext sec = new StandardEvaluationContext(); | ||
| 127 | sec.addPropertyAccessor(new MapAccessor()); | ||
| 128 | this.evaluationContext = sec; | ||
| 126 | 129 | } | |
| 130 | |||
| 127 | 131 | ||
| 128 | 132 | /** | |
| 129 | 133 | * Specify the {@link HttpMethod} for requests. The default method will be POST. |
Comments
Add your comment
Please log in to comment



Add a new comment:
Login or create an account to post a comment