edu.whoi.ursa.argoDatabase.web.webData
Class WebDataFloatPositionAndTrajectory

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

@WebServlet(value="/WebDataFloatPositionAndTrajectory")
public class WebDataFloatPositionAndTrajectory
extends javax.servlet.http.HttpServlet

Servlet implementation class WebDataFloatPositionAndTrajectory

See Also:
Serialized Form

Field Summary
private static java.util.Set<java.lang.String> fields
           
private static java.lang.Double juldToMillisecondRatio
           
private static java.util.GregorianCalendar referenceDate
           
private static long serialVersionUID
           
 
Constructor Summary
WebDataFloatPositionAndTrajectory()
           
 
Method Summary
private static java.lang.String createEventListenerFunction(java.util.Collection<java.lang.Object[]> markers)
           
private  void createMap(org.w3c.dom.Element body, org.w3c.dom.Element head, java.lang.Integer wmo)
           
private  java.util.List<java.lang.Object[]> createObjectList(java.util.Collection<java.lang.String> fields, java.lang.Integer wmo)
           
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)
           
private  void doThis(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static java.lang.Double gregdToJuld(java.util.GregorianCalendar date)
           
 
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

juldToMillisecondRatio

private static final java.lang.Double juldToMillisecondRatio

fields

private static final java.util.Set<java.lang.String> fields

referenceDate

private static final java.util.GregorianCalendar referenceDate
Constructor Detail

WebDataFloatPositionAndTrajectory

public WebDataFloatPositionAndTrajectory()
Method Detail

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)

doThis

private void doThis(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

createMap

private void createMap(org.w3c.dom.Element body,
                       org.w3c.dom.Element head,
                       java.lang.Integer wmo)

createEventListenerFunction

private static java.lang.String createEventListenerFunction(java.util.Collection<java.lang.Object[]> markers)

createObjectList

private java.util.List<java.lang.Object[]> createObjectList(java.util.Collection<java.lang.String> fields,
                                                            java.lang.Integer wmo)

gregdToJuld

public static java.lang.Double gregdToJuld(java.util.GregorianCalendar date)