edu.whoi.ursa.argoDatabase.web
Class FloatStatusPage

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by edu.whoi.ursa.argoDatabase.web.FloatStatusPage
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@WebServlet(value="/float-status/float-status.html")
public class FloatStatusPage
extends javax.servlet.http.HttpServlet

Servlet implementation class ViewFloatStatus

See Also:
Serialized Form

Nested Class Summary
private static class FloatStatusPage._FloatStatus
          Default page for GET or POST requests to /float-status/float-status.html

For no paramters specified:
Select Status Flags Form - for select printing table (html) or generating report (text file) of status flags.
Status Flags Summary Table - summary of all flags set

For submit="View+Table":
Prints Flag html table for specified flags

For submit="Generate+Report"
Serves table as text file floatstatus_report.txt

private static class FloatStatusPage._FloatStatusCommentHandler
          handle comment submission
private static class FloatStatusPage._FloatStatusDeleteHandler
          delete flag or comment
private static class FloatStatusPage._FloatStatusFlagForm
          print form for flag submission
private static class FloatStatusPage._FloatStatusFlagHandler
          handle flag submission
private static class FloatStatusPage._FloatStatusPrintFlags
          print flags + comments for individual float
private static class FloatStatusPage._FloatStatusSelectFlagForm
          print select flag form
 
Field Summary
private static long serialVersionUID
           
 
Constructor Summary
FloatStatusPage()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static FloatStatus getFloatStatus(java.lang.Integer aoml, java.lang.Integer whoi, java.lang.Integer wmo)
          get float status by identifier
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

FloatStatusPage

public FloatStatusPage()
Method Detail

getFloatStatus

public static FloatStatus getFloatStatus(java.lang.Integer aoml,
                                         java.lang.Integer whoi,
                                         java.lang.Integer wmo)
get float status by identifier

Parameters:
aoml -
whoi -
wmo -
Returns:
FloatStatus for specified identifier(s) or null if not found

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doGet(HttpServletRequest request, HttpServletResponse response)

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.doPost(HttpServletRequest request, HttpServletResponse response)