// Path: src/main/java/org/mockenize/service/MockenizeService.java
// @Service
// public class MockenizeService {
// 
// 	@Autowired
// 	private MockService mockService;
// 
// 	@Autowired
// 	private ProxyService proxyService;
// 
// 	public Response getResponse(HttpServletRequest request, JsonNode body) {
// 		String path = request.getRequestURI();
// 		String method = request.getMethod();
// 
// 		if (mockService.exists(method, path)) {
// 			return mockService.getResponse(request, body);
// 		} else if (proxyService.exists(path)) {
// 			return proxyService.getResponse(request, body);
// 		}
// 
// 		throw new ResourceNotFoundException(path);
// 	}
// 
// 	public Response getResponse(HttpServletRequest request) {
// 		return getResponse(request, null);
// 	}
// }


import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.HEAD;
import javax.ws.rs.OPTIONS;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.mockenize.service.MockenizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import com.fasterxml.jackson.databind.JsonNode;
package org.mockenize.controller;




@Controller
@Path("{path:[^_].+}")
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN })
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN, MediaType.TEXT_HTML })
public class MockenizeController {

	@Autowired
// Path: src/main/java/org/mockenize/service/MockenizeService.java
// @Service
// public class MockenizeService {
// 
// 	@Autowired
// 	private MockService mockService;
// 
// 	@Autowired
// 	private ProxyService proxyService;
// 
// 	public Response getResponse(HttpServletRequest request, JsonNode body) {
// 		String path = request.getRequestURI();
// 		String method = request.getMethod();
// 
// 		if (mockService.exists(method, path)) {
// 			return mockService.getResponse(request, body);
// 		} else if (proxyService.exists(path)) {
// 			return proxyService.getResponse(request, body);
// 		}
// 
// 		throw new ResourceNotFoundException(path);
// 	}
// 
// 	public Response getResponse(HttpServletRequest request) {
// 		return getResponse(request, null);
// 	}
// }


// Path: src/main/java/org/mockenize/controller/MockenizeController.java
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.HEAD;
import javax.ws.rs.OPTIONS;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.mockenize.service.MockenizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import com.fasterxml.jackson.databind.JsonNode;

package org.mockenize.controller;




@Controller
@Path("{path:[^_].+}")
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN })
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN, MediaType.TEXT_HTML })
public class MockenizeController {

	@Autowired
	private MockenizeService mockenizeService;