// Path: photorama-raspberry-pi-webapp/src/main/java/org/onebeartoe/electronics/photorama/ConfigurationServlet.java
// public static final String CAMERA_KEY = "camera";


import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import static org.onebeartoe.electronics.photorama.ConfigurationServlet.CAMERA_KEY;

package org.onebeartoe.electronics.photorama;


/**
 * @author Roberto Marquez
 */
@WebServlet(urlPatterns = {"/frequency/*"})
public class FrequencyServlet extends HttpServlet
{
    private Logger logger;
    
    @Override
//Todo: UPDATE THIS TO USE THE PlainTextResponseServlet CLASS    
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException 
    {        
        ServletContext context = getServletContext();
// Path: photorama-raspberry-pi-webapp/src/main/java/org/onebeartoe/electronics/photorama/ConfigurationServlet.java
// public static final String CAMERA_KEY = "camera";


// Path: photorama-raspberry-pi-webapp/src/main/java/org/onebeartoe/electronics/photorama/FrequencyServlet.java
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import static org.onebeartoe.electronics.photorama.ConfigurationServlet.CAMERA_KEY;


package org.onebeartoe.electronics.photorama;


/**
 * @author Roberto Marquez
 */
@WebServlet(urlPatterns = {"/frequency/*"})
public class FrequencyServlet extends HttpServlet
{
    private Logger logger;
    
    @Override
//Todo: UPDATE THIS TO USE THE PlainTextResponseServlet CLASS    
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException 
    {        
        ServletContext context = getServletContext();
        Camera camera = (Camera) context.getAttribute(CAMERA_KEY);