"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-webui/src/main/java/net/anotheria/moskito/webui/gauges/resource/GaugeResource.java" between
moskito-moskito-2.9.3.tar.gz and moskito-moskito-2.10.0.tar.gz

About: MoSKito (Monitoring System Kit) is a framework for java application monitoring. Sources.

GaugeResource.java  (moskito-moskito-2.9.3):GaugeResource.java  (moskito-moskito-2.10.0)
package net.anotheria.moskito.webui.gauges.resource; package net.anotheria.moskito.webui.gauges.resource;
import io.swagger.v3.oas.annotations.servers.Server;
import net.anotheria.anoplass.api.APIException; import net.anotheria.anoplass.api.APIException;
import net.anotheria.moskito.webui.shared.resource.AbstractResource; import net.anotheria.moskito.webui.shared.resource.AbstractResource;
import net.anotheria.moskito.webui.shared.resource.ReplyObject; import net.anotheria.moskito.webui.shared.resource.ReplyObject;
import javax.ws.rs.GET; import javax.ws.rs.GET;
import javax.ws.rs.Path; import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException; import javax.ws.rs.WebApplicationException;
/** /**
* TODO comment this class * TODO comment this class
* *
* @author lrosenberg * @author lrosenberg
* @since 25.03.15 11:47 * @since 25.03.15 11:47
*/ */
@Path("gauges") @Path("gauges")
@Server(url = "/moskito-inspect-rest/") //@Server(url = "/moskito-inspect-rest/")
public class GaugeResource extends AbstractResource { public class GaugeResource extends AbstractResource {
@GET @GET
public ReplyObject getGauges(){ public ReplyObject getGauges(){
try{ try{
ReplyObject ret = ReplyObject.success(); ReplyObject ret = ReplyObject.success();
ret.addResult("gauges", getGaugeAPI().getGauges()); ret.addResult("gauges", getGaugeAPI().getGauges());
return ret; return ret;
}catch(APIException e){ }catch(APIException e){
throw new WebApplicationException(e); throw new WebApplicationException(e);
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)