Skip to content

Commit f22e273

Browse files
committed
deleted httpEnable from Transport Client as it has to be set on server side
1 parent c7424cd commit f22e273

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/main/java/org/springframework/data/elasticsearch/client/TransportClientFactoryBean.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public class TransportClientFactoryBean implements FactoryBean<TransportClient>,
4242
private static final Logger logger = LoggerFactory.getLogger(TransportClientFactoryBean.class);
4343
private String clusterNodes;
4444
private String clusterName;
45-
private Boolean enableHttp;
4645
private Boolean clientTransportSniff;
4746
private TransportClient client;
4847
private Properties properties;
@@ -102,7 +101,6 @@ private Settings settings() {
102101
return settingsBuilder()
103102
.put("cluster.name", clusterName)
104103
.put("client.transport.sniff", clientTransportSniff)
105-
.put("http.enabled", enableHttp)
106104
.build();
107105
}
108106

@@ -114,10 +112,6 @@ public void setClusterName(String clusterName) {
114112
this.clusterName = clusterName;
115113
}
116114

117-
public void setEnableHttp(Boolean enableHttp) {
118-
this.enableHttp = enableHttp;
119-
}
120-
121115
public void setClientTransportSniff(Boolean clientTransportSniff) {
122116
this.clientTransportSniff = clientTransportSniff;
123117
}

src/main/java/org/springframework/data/elasticsearch/config/TransportClientBeanDefinitionParser.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ protected AbstractBeanDefinition parseInternal(Element element, ParserContext pa
4343
private void setClusterNodes(Element element, BeanDefinitionBuilder builder) {
4444
builder.addPropertyValue("clusterNodes", element.getAttribute("cluster-nodes"));
4545
builder.addPropertyValue("clusterName", element.getAttribute("cluster-name"));
46-
builder.addPropertyValue("enableHttp", Boolean.valueOf(element.getAttribute("http-enabled")));
4746
builder.addPropertyValue("clientTransportSniff", Boolean.valueOf(element.getAttribute("client-transport-sniff")));
4847
}
4948

src/main/resources/org/springframework/data/elasticsearch/config/spring-elasticsearch-1.0.xsd

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@
8484
<xsd:documentation><![CDATA[Name of the cluster in which this instance of node client will connect to]]> </xsd:documentation>
8585
</xsd:annotation>
8686
</xsd:attribute>
87-
<xsd:attribute name="http-enabled" type="xsd:boolean" default="true">
88-
<xsd:annotation>
89-
<xsd:documentation><![CDATA[to enable or desable http port]]> </xsd:documentation>
90-
</xsd:annotation>
91-
</xsd:attribute>
9287
<xsd:attribute name="client-transport-sniff" type="xsd:boolean" default="true">
9388
<xsd:annotation>
9489
<xsd:documentation><![CDATA[The client allows to sniff the rest of the cluster, and add those into its list of machines to use.]]> </xsd:documentation>

0 commit comments

Comments
 (0)