// Path: src/main/java/net/technolords/micro/model/ResponseContext.java
// public class ResponseContext {
//     public static final String JSON_CONTENT_TYPE = "application/json";
//     public static final String XML_CONTENT_TYPE = "application/xml";
//     public static final String PLAIN_TEXT_CONTENT_TYPE = "text/plain";
//     public static final String HTML_CONTENT_TYPE = "text/html";
//     public static final String DEFAULT_CONTENT_TYPE = JSON_CONTENT_TYPE;
//     private String response;
//     private String errorCode;
//     private String contentType = DEFAULT_CONTENT_TYPE;
// 
//     public String getResponse() {
//         return response;
//     }
// 
//     public void setResponse(String response) {
//         this.response = response;
//     }
// 
//     public String getErrorCode() {
//         return errorCode;
//     }
// 
//     public void setErrorCode(String errorCode) {
//         this.errorCode = errorCode;
//     }
// 
//     public String getContentType() {
//         return contentType;
//     }
// 
//     public void setContentType(String contentType) {
//         this.contentType = contentType;
//     }
// }


import java.net.HttpURLConnection;
import org.apache.camel.Exchange;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.technolords.micro.model.ResponseContext;
package net.technolords.micro.command;




public class StopCommand implements Command {
    private static final Logger LOGGER = LoggerFactory.getLogger(StopCommand.class);

    /**
     * Auxiliary method to get the id associated with this command.
     *
     * @return
     *  The id associated with the command.
     */
    @Override
    public String getId() {
        return Command.STOP;
    }

    /**
     * Auxiliary method that stops the Main execution. This is achieved by calling stop on the CamelContext
     * which is associated with the Main.
     *
     * @param exchange
     *  The exchange associated with the stop command.
     *
     * @return
     *  The result of the stop command (unlikely to be received, as the execution is terminating).
     */
    @Override
    public ResponseContext executeCommand(Exchange exchange) {
        LOGGER.debug("Stop command called...");
// Path: src/main/java/net/technolords/micro/model/ResponseContext.java
// public class ResponseContext {
//     public static final String JSON_CONTENT_TYPE = "application/json";
//     public static final String XML_CONTENT_TYPE = "application/xml";
//     public static final String PLAIN_TEXT_CONTENT_TYPE = "text/plain";
//     public static final String HTML_CONTENT_TYPE = "text/html";
//     public static final String DEFAULT_CONTENT_TYPE = JSON_CONTENT_TYPE;
//     private String response;
//     private String errorCode;
//     private String contentType = DEFAULT_CONTENT_TYPE;
// 
//     public String getResponse() {
//         return response;
//     }
// 
//     public void setResponse(String response) {
//         this.response = response;
//     }
// 
//     public String getErrorCode() {
//         return errorCode;
//     }
// 
//     public void setErrorCode(String errorCode) {
//         this.errorCode = errorCode;
//     }
// 
//     public String getContentType() {
//         return contentType;
//     }
// 
//     public void setContentType(String contentType) {
//         this.contentType = contentType;
//     }
// }


// Path: src/main/java/net/technolords/micro/command/StopCommand.java
import java.net.HttpURLConnection;
import org.apache.camel.Exchange;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.technolords.micro.model.ResponseContext;

package net.technolords.micro.command;




public class StopCommand implements Command {
    private static final Logger LOGGER = LoggerFactory.getLogger(StopCommand.class);

    /**
     * Auxiliary method to get the id associated with this command.
     *
     * @return
     *  The id associated with the command.
     */
    @Override
    public String getId() {
        return Command.STOP;
    }

    /**
     * Auxiliary method that stops the Main execution. This is achieved by calling stop on the CamelContext
     * which is associated with the Main.
     *
     * @param exchange
     *  The exchange associated with the stop command.
     *
     * @return
     *  The result of the stop command (unlikely to be received, as the execution is terminating).
     */
    @Override
    public ResponseContext executeCommand(Exchange exchange) {
        LOGGER.debug("Stop command called...");
        ResponseContext responseContext = new ResponseContext();