import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.PortletSecurityException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

import java.io.*;

public class NotamRetrievalPortlet extends GenericPortlet
{
    protected void doView(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, PortletSecurityException, IOException
    {
        renderResponse.setContentType("text/html");
        PrintWriter writer = renderResponse.getWriter();

        writer.println("<script type='text/javascript' language='javascript' src='" + renderRequest.getContextPath() + "app.nocache.js'></script>");
        writer.println("<div id='uid'></div>");
        writer.close();
    }

    protected void doHelp(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, PortletSecurityException, IOException
    {
        renderResponse.setContentType("text/html");
        PrintWriter writer = renderResponse.getWriter();
        writer.write("Help");
        writer.close();
    }

    protected void doEdit(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, PortletSecurityException, IOException
    {
        renderResponse.setContentType("text/html");
        PrintWriter writer = renderResponse.getWriter();
        writer.println("Edit");
        writer.close();
    }
}

