additional places not to do field conversions
This commit is contained in:
parent
ea3ec926c9
commit
62a09fd207
|
@ -71,7 +71,7 @@ public class NodesInfoResponse extends NodesOperationResponse<NodeInfo> implemen
|
|||
|
||||
@Override
|
||||
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
|
||||
builder.field("cluster_name", getClusterName().value());
|
||||
builder.field("cluster_name", getClusterName().value(), XContentBuilder.FieldCaseConversion.NONE);
|
||||
|
||||
builder.startObject("nodes");
|
||||
for (NodeInfo nodeInfo : this) {
|
||||
|
@ -90,14 +90,14 @@ public class NodesInfoResponse extends NodesOperationResponse<NodeInfo> implemen
|
|||
|
||||
if (nodeInfo.getServiceAttributes() != null) {
|
||||
for (Map.Entry<String, String> nodeAttribute : nodeInfo.getServiceAttributes().entrySet()) {
|
||||
builder.field(nodeAttribute.getKey(), nodeAttribute.getValue());
|
||||
builder.field(nodeAttribute.getKey(), nodeAttribute.getValue(), XContentBuilder.FieldCaseConversion.NONE);
|
||||
}
|
||||
}
|
||||
|
||||
if (!nodeInfo.getNode().attributes().isEmpty()) {
|
||||
builder.startObject("attributes");
|
||||
for (Map.Entry<String, String> attr : nodeInfo.getNode().attributes().entrySet()) {
|
||||
builder.field(attr.getKey(), attr.getValue());
|
||||
builder.field(attr.getKey(), attr.getValue(), XContentBuilder.FieldCaseConversion.NONE);
|
||||
}
|
||||
builder.endObject();
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ public class NodesInfoResponse extends NodesOperationResponse<NodeInfo> implemen
|
|||
builder.startObject("settings");
|
||||
Settings settings = settingsFilter.filterSettings(nodeInfo.getSettings());
|
||||
for (Map.Entry<String, String> entry : settings.getAsMap().entrySet()) {
|
||||
builder.field(entry.getKey(), entry.getValue());
|
||||
builder.field(entry.getKey(), entry.getValue(), XContentBuilder.FieldCaseConversion.NONE);
|
||||
}
|
||||
builder.endObject();
|
||||
}
|
||||
|
|
|
@ -283,7 +283,7 @@ public class NodeStats extends NodeOperationResponse implements ToXContent {
|
|||
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
|
||||
builder.field("timestamp", getTimestamp());
|
||||
builder.field("name", getNode().name(), XContentBuilder.FieldCaseConversion.NONE);
|
||||
builder.field("transport_address", getNode().address().toString());
|
||||
builder.field("transport_address", getNode().address().toString(), XContentBuilder.FieldCaseConversion.NONE);
|
||||
|
||||
if (getHostname() != null) {
|
||||
builder.field("hostname", getHostname(), XContentBuilder.FieldCaseConversion.NONE);
|
||||
|
@ -292,7 +292,7 @@ public class NodeStats extends NodeOperationResponse implements ToXContent {
|
|||
if (!getNode().attributes().isEmpty()) {
|
||||
builder.startObject("attributes");
|
||||
for (Map.Entry<String, String> attr : getNode().attributes().entrySet()) {
|
||||
builder.field(attr.getKey(), attr.getValue());
|
||||
builder.field(attr.getKey(), attr.getValue(), XContentBuilder.FieldCaseConversion.NONE);
|
||||
}
|
||||
builder.endObject();
|
||||
}
|
||||
|
|
|
@ -208,12 +208,12 @@ public class FsStats implements Iterable<FsStats.Info>, Streamable, ToXContent {
|
|||
builder.startArray(Fields.DATA);
|
||||
for (Info info : infos) {
|
||||
builder.startObject();
|
||||
builder.field(Fields.PATH, info.path);
|
||||
builder.field(Fields.PATH, info.path, XContentBuilder.FieldCaseConversion.NONE);
|
||||
if (info.mount != null) {
|
||||
builder.field(Fields.MOUNT, info.mount);
|
||||
builder.field(Fields.MOUNT, info.mount, XContentBuilder.FieldCaseConversion.NONE);
|
||||
}
|
||||
if (info.dev != null) {
|
||||
builder.field(Fields.DEV, info.dev);
|
||||
builder.field(Fields.DEV, info.dev, XContentBuilder.FieldCaseConversion.NONE);
|
||||
}
|
||||
|
||||
if (info.total != -1) {
|
||||
|
|
Loading…
Reference in New Issue