Examples of RHQErrorWrapper


Examples of org.rhq.enterprise.server.rest.domain.RHQErrorWrapper

            message = message + "\n";
            builder.entity(message);
        } else if (mediaType.equals(MediaType.TEXT_HTML_TYPE)) {
            builder.entity("<html><body><h1>Error</h1><h2>" + message + "</h2></body></html>");
        } else {
            RHQErrorWrapper error = new RHQErrorWrapper(message);
            builder.entity(error);
        }
        builder.type(mediaType);
    }
View Full Code Here

Examples of org.rhq.enterprise.server.rest.domain.RHQErrorWrapper

                data.add(new MeasurementDataNumeric(point.getTimestamp(), scheduleId,point.getValue()));
            } else {
                return Response
                    .status(Status.FORBIDDEN)
                    .entity(
                        new RHQErrorWrapper("Metric name=" + point.getMetric() + " for resourceId=" + resourceId
                            + " does not exist")).build();
            }
        }

        dataManager.addNumericData(data);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.