// Path: src/org/restsql/service/monitoring/MonitoringFactory.java
// public class MonitoringFactory extends AbstractFactory {
// 	
// 	/** Returns MonitoringManager singleton. */
// 	public static MonitoringManager getMonitoringManager() {
// 		return (MonitoringManager) getInstance(Config.KEY_MONITORING_MANAGER, Config.DEFAULT_MONITORING_MANAGER);
// 	}
// 
// 	/** Returns configured MonitoringManager class name. */
// 	public static String getMonitoringManagerClass() {
// 		return Config.properties.getProperty(Config.KEY_MONITORING_MANAGER, Config.DEFAULT_MONITORING_MANAGER);
// 	}
// 
// }


import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.restsql.service.monitoring.MonitoringFactory;
import org.restsql.tools.ResourceDefinitionGenerator;
import org.restsql.tools.ToolsFactory;
import com.codahale.metrics.Counter;
/* Copyright (c) restSQL Project Contributors. Licensed under MIT. */
package org.restsql.service;




/**
 * Provides utilities to users.
 * 
 * @author Mark Sawers
 */
@Path("tools")
public class ToolsResource {
	private final static String BASE_HTML = "<!DOCTYPE html>\n<html><head><link rel=\"icon\" type=\"image/png\" href=\"../assets/favicon.ico\"/></head><body style=\"font-family:sans-serif\">"
			+ "<span style=\"font-weight:bold\"><a href=\"../..\">restSQL</a> Tools: Generate Resource Definitions</span><hr/>";
// Path: src/org/restsql/service/monitoring/MonitoringFactory.java
// public class MonitoringFactory extends AbstractFactory {
// 	
// 	/** Returns MonitoringManager singleton. */
// 	public static MonitoringManager getMonitoringManager() {
// 		return (MonitoringManager) getInstance(Config.KEY_MONITORING_MANAGER, Config.DEFAULT_MONITORING_MANAGER);
// 	}
// 
// 	/** Returns configured MonitoringManager class name. */
// 	public static String getMonitoringManagerClass() {
// 		return Config.properties.getProperty(Config.KEY_MONITORING_MANAGER, Config.DEFAULT_MONITORING_MANAGER);
// 	}
// 
// }


// Path: src/org/restsql/service/ToolsResource.java
import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.restsql.service.monitoring.MonitoringFactory;
import org.restsql.tools.ResourceDefinitionGenerator;
import org.restsql.tools.ToolsFactory;
import com.codahale.metrics.Counter;

/* Copyright (c) restSQL Project Contributors. Licensed under MIT. */
package org.restsql.service;




/**
 * Provides utilities to users.
 * 
 * @author Mark Sawers
 */
@Path("tools")
public class ToolsResource {
	private final static String BASE_HTML = "<!DOCTYPE html>\n<html><head><link rel=\"icon\" type=\"image/png\" href=\"../assets/favicon.ico\"/></head><body style=\"font-family:sans-serif\">"
			+ "<span style=\"font-weight:bold\"><a href=\"../..\">restSQL</a> Tools: Generate Resource Definitions</span><hr/>";
	private final Counter requestCounter = MonitoringFactory.getMonitoringManager().newCounter(ToolsResource.class, "tools");