use of org.ovirt.engine.api.v3.types.V3RSDL in project ovirt-engine by oVirt.
the class V3SystemServer method get.
@GET
public Response get(@Context HttpHeaders headers, @Context UriInfo ui) {
// Check if the RSDL was requested, and return it:
if (ParametersHelper.getParameter(headers, ui, "rsdl") != null) {
try {
V3RSDL rsdl = getRSDL();
return Response.ok().entity(rsdl).build();
} catch (Exception exception) {
throw new WebApplicationException(exception, Response.status(Response.Status.INTERNAL_SERVER_ERROR).build());
}
}
// Adapt the V4 response:
Response response = adaptResponse(getDelegate()::get);
// Replace the "Link" header with links calculated from the response body:
response = replaceLinkHeader(response);
return response;
}
Aggregations