use of org.jboss.hal.dmr.ModelDescriptionConstants.HEADERS in project console by hal.
the class ConstantHeadersElement method showHeaders.
public void showHeaders(ModelNode modelNode) {
selectedPath = modelNode.get(PATH).asString();
int selectedIndex = modelNode.get(HAL_INDEX).asInt();
List<NamedNode> headers = failSafeList(modelNode, HEADERS).stream().map(node -> new NamedNode(node.get(NAME).asString(), node)).collect(toList());
headersElement.update(selectedIndex, headers);
pages.showPage(Ids.CONSTANT_HEADERS_PATH_PAGE);
}
Aggregations