Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
added new lines between methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Libor Zoubek committed Mar 20, 2014
1 parent 6ddf053 commit 0463535
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Expand Up @@ -1058,6 +1058,7 @@ public Response setBaseline(@ApiParam("Id of the schedule") @PathParam("schedule
return Response.created(uriInfo.getRequestUriBuilder().build()).build();

}

private class CallTimeDataStreamingOutput implements StreamingOutput {
private final PageList<CallTimeDataComposite> callTimes;
private final MediaType mediaType;
Expand All @@ -1077,6 +1078,7 @@ private void jsonOutput(CallTimeDataComposite c, PrintWriter pw) {
pw.print("}");
pw.flush();
}

private void htmlOutput(CallTimeDataComposite c, PrintWriter pw) {
pw.print("<tr>");
pw.print("<td>"); pw.print(c.getCallDestination());
Expand All @@ -1088,6 +1090,7 @@ private void htmlOutput(CallTimeDataComposite c, PrintWriter pw) {
pw.print("</td></tr>\n");
pw.flush();
}

private void xmlOutput(CallTimeDataComposite c, PrintWriter pw) {
pw.print(" <callTime ");
pw.print("callDestination=\""); pw.print(c.getCallDestination());
Expand All @@ -1099,6 +1102,7 @@ private void xmlOutput(CallTimeDataComposite c, PrintWriter pw) {
pw.print("\" />\n");
pw.flush();
}

@Override
public void write(OutputStream os) throws IOException, WebApplicationException {
PrintWriter pw = new PrintWriter(os);
Expand Down
@@ -1,6 +1,6 @@
/*
* RHQ Management Platform
* Copyright (C) 2005-2013 Red Hat, Inc.
* Copyright (C) 2005-2014 Red Hat, Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -43,25 +43,31 @@ public CallTimeValueRest() {
public long getBeginTime() {
return beginTime;
}

@ApiProperty("Destination URI of request")
@XmlAttribute
public String getCallDestination() {
return callDestination;
}

@ApiProperty("Time in millis - duration of request")
@XmlAttribute
public long getDuration() {
return duration;
}

public void setBeginTime(long beginTime) {
this.beginTime = beginTime;
}

public void setCallDestination(String callDestination) {
this.callDestination = callDestination;
}

public void setDuration(long duration) {
this.duration = duration;
}

@Override
public String toString() {
return new StringBuilder("[callDestination="+callDestination)
Expand Down
@@ -1,6 +1,6 @@
/*
* RHQ Management Platform
* Copyright (C) 2005-2013 Red Hat, Inc.
* Copyright (C) 2005-2014 Red Hat, Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
Expand Down

0 comments on commit 0463535

Please sign in to comment.