setNegotiated(false);
}
@Override
public Representation get() {
StringRepresentation presentation = null;
try {
String clusterName = (String) getRequest().getAttributes().get("clusterName");
String instanceName = (String) getRequest().getAttributes().get("instanceName");
String resourceGroup = (String) getRequest().getAttributes().get("resourceName");
presentation =
getInstanceCurrentStateRepresentation(clusterName, instanceName, resourceGroup);
} catch (Exception e) {
String error = ClusterRepresentationUtil.getErrorAsJsonStringFromException(e);
presentation = new StringRepresentation(error, MediaType.APPLICATION_JSON);
LOG.error("", e);
}
return presentation;
}