Commit a419ba0bdc7725f1cee2663e0b4b2a0202e6ac8c

INT-1933 added MapAccessor to outbound HTTP endpoint's SpEL EvaluationContext
spring-integration-http/src/main/java/org/springframework/integration/http/outbound/HttpRequestExecutingMessageHandler.java
(7 / 2)
  
11/*
2 * Copyright 2002-2010 the original author or authors.
2 * Copyright 2002-2011 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2929
3030import org.springframework.beans.factory.BeanFactory;
3131import org.springframework.context.expression.BeanFactoryResolver;
32import org.springframework.context.expression.MapAccessor;
3233import org.springframework.core.convert.ConversionService;
3334import org.springframework.expression.Expression;
3435import org.springframework.expression.ExpressionParser;
9797
9898 private final RestTemplate restTemplate;
9999
100 private final StandardEvaluationContext evaluationContext = new StandardEvaluationContext();
100 private final StandardEvaluationContext evaluationContext;
101101
102102
103103 /**
123123 this.restTemplate = (restTemplate == null ? new RestTemplate() : restTemplate);
124124 this.restTemplate.getMessageConverters().add(0, new SerializingHttpMessageConverter());
125125 this.uri = uri;
126 StandardEvaluationContext sec = new StandardEvaluationContext();
127 sec.addPropertyAccessor(new MapAccessor());
128 this.evaluationContext = sec;
126129 }
130
127131
128132 /**
129133 * Specify the {@link HttpMethod} for requests. The default method will be POST.

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment