You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: elasticsearch-driver/src/main/java/org/jnosql/diana/elasticsearch/document/ElasticsearchDocumentConfiguration.java
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,26 @@ public ElasticsearchDocumentConfiguration() {
65
65
.forEach(httpHosts::add);
66
66
}
67
67
68
+
/**
69
+
* Adds a host in the configuration
70
+
*
71
+
* @param host the host
72
+
* @throws NullPointerException when host is null
73
+
*/
74
+
publicvoidadd(HttpHosthost) {
75
+
this.httpHosts.add(Objects.requireNonNull(host, "host is required"));
76
+
}
77
+
78
+
/**
79
+
* Adds a header in the configuration
80
+
*
81
+
* @param header the header
82
+
* @throws NullPointerException when header is null
83
+
*/
84
+
publicvoidadd(Headerheader) {
85
+
this.headers.add(Objects.requireNonNull(header, "header is required"));
0 commit comments