edu.whoi.ursa.argoDatabase.web
Class SearchByLocation

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

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

Servlet implementation class SearchByLocation

See Also:
Serialized Form

Nested Class Summary
static class SearchByLocation.profileType
           
 
Field Summary
private  java.util.Calendar end
           
private  java.lang.Double jend
           
private  java.lang.Double jstart
           
private static java.lang.Double juldToMillisecondRatio
           
private  java.lang.Double latmax
           
private  java.lang.Double latmin
           
private  java.lang.Double lonmax
           
private  java.lang.Double lonmin
           
private static java.util.Map<java.lang.String,java.lang.String> mapFields
           
private static java.util.Set<java.lang.String> otherFields
           
private static java.util.GregorianCalendar referenceDate
           
private static long serialVersionUID
           
private  java.util.Calendar start
           
private static java.util.Map<java.lang.String,java.lang.String> tableFields
           
private  SearchByLocation.profileType type
           
private  java.lang.Boolean whoiOnly
           
 
Constructor Summary
SearchByLocation()
           
 
Method Summary
private static java.lang.String createEventListenerFunction(java.lang.Double latmin, java.lang.Double latmax, java.lang.Double lonmin, java.lang.Double lonmax, java.util.Collection<java.lang.Object[]> markers)
           
private static java.lang.String createInitializeString(java.lang.Double latmin, java.lang.Double latmax, java.lang.Double lonmin, java.lang.Double lonmax)
           
private  void createMap(org.w3c.dom.Element body, org.w3c.dom.Element head)
           
private  java.util.List<java.lang.Object[]> createObjectList(java.util.Collection<java.lang.String> fields)
           
private  void createTable(org.w3c.dom.Element body, org.w3c.dom.Element head)
           
private static java.util.GregorianCalendar dateStringToGregorianDate(java.lang.String dateString)
           
private static java.lang.Double dateStringToJulianDate(java.lang.String dateString)
           
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)
           
 java.util.Calendar getEnd()
           
 java.lang.Double getJend()
           
 java.lang.Double getJstart()
           
static java.lang.Double getJuldtomillisecondratio()
           
 java.lang.Double getLatmax()
           
 java.lang.Double getLatmin()
           
 java.lang.Double getLonmax()
           
 java.lang.Double getLonmin()
           
static java.util.Map<java.lang.String,java.lang.String> getMapfields()
           
private  void getParameters(java.util.Map<java.lang.String,java.lang.String[]> parametersMap)
           
static java.util.GregorianCalendar getReferencedate()
           
static long getSerialversionuid()
           
 java.util.Calendar getStart()
           
static java.util.Map<java.lang.String,java.lang.String> getTablefields()
           
 SearchByLocation.profileType getType()
           
private static java.lang.Double gregdToJuld(java.util.GregorianCalendar date)
           
private static java.lang.Boolean isNumber(java.lang.String s)
           
 void setEnd(java.util.Calendar end)
           
 void setJend(java.lang.Double jend)
           
 void setJstart(java.lang.Double jstart)
           
 void setLatmax(java.lang.Double latmax)
           
 void setLatmin(java.lang.Double latmin)
           
 void setLonmax(java.lang.Double lonmax)
           
 void setLonmin(java.lang.Double lonmin)
           
 void setStart(java.util.Calendar start)
           
 void setType(SearchByLocation.profileType type)
           
 
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

referenceDate

private static final java.util.GregorianCalendar referenceDate

tableFields

private static final java.util.Map<java.lang.String,java.lang.String> tableFields

mapFields

private static final java.util.Map<java.lang.String,java.lang.String> mapFields

otherFields

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

whoiOnly

private java.lang.Boolean whoiOnly

latmin

private java.lang.Double latmin

latmax

private java.lang.Double latmax

lonmin

private java.lang.Double lonmin

lonmax

private java.lang.Double lonmax

jstart

private java.lang.Double jstart

jend

private java.lang.Double jend

start

private java.util.Calendar start

end

private java.util.Calendar end

type

private SearchByLocation.profileType type
Constructor Detail

SearchByLocation

public SearchByLocation()
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)

createEventListenerFunction

private static java.lang.String createEventListenerFunction(java.lang.Double latmin,
                                                            java.lang.Double latmax,
                                                            java.lang.Double lonmin,
                                                            java.lang.Double lonmax,
                                                            java.util.Collection<java.lang.Object[]> markers)

createTable

private void createTable(org.w3c.dom.Element body,
                         org.w3c.dom.Element head)

getParameters

private void getParameters(java.util.Map<java.lang.String,java.lang.String[]> parametersMap)

createObjectList

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

isNumber

private static java.lang.Boolean isNumber(java.lang.String s)

gregdToJuld

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

dateStringToJulianDate

private static java.lang.Double dateStringToJulianDate(java.lang.String dateString)

dateStringToGregorianDate

private static java.util.GregorianCalendar dateStringToGregorianDate(java.lang.String dateString)

createInitializeString

private static java.lang.String createInitializeString(java.lang.Double latmin,
                                                       java.lang.Double latmax,
                                                       java.lang.Double lonmin,
                                                       java.lang.Double lonmax)

getLatmin

public java.lang.Double getLatmin()
Returns:
the latmin

setLatmin

public void setLatmin(java.lang.Double latmin)
Parameters:
latmin - the latmin to set

getLatmax

public java.lang.Double getLatmax()
Returns:
the latmax

setLatmax

public void setLatmax(java.lang.Double latmax)
Parameters:
latmax - the latmax to set

getLonmin

public java.lang.Double getLonmin()
Returns:
the lonmin

setLonmin

public void setLonmin(java.lang.Double lonmin)
Parameters:
lonmin - the lonmin to set

getLonmax

public java.lang.Double getLonmax()
Returns:
the lonmax

setLonmax

public void setLonmax(java.lang.Double lonmax)
Parameters:
lonmax - the lonmax to set

getJstart

public java.lang.Double getJstart()
Returns:
the jstart

setJstart

public void setJstart(java.lang.Double jstart)
Parameters:
jstart - the jstart to set

getJend

public java.lang.Double getJend()
Returns:
the jend

setJend

public void setJend(java.lang.Double jend)
Parameters:
jend - the jend to set

getStart

public java.util.Calendar getStart()
Returns:
the start

setStart

public void setStart(java.util.Calendar start)
Parameters:
start - the start to set

getEnd

public java.util.Calendar getEnd()
Returns:
the end

setEnd

public void setEnd(java.util.Calendar end)
Parameters:
end - the end to set

getType

public SearchByLocation.profileType getType()
Returns:
the type

setType

public void setType(SearchByLocation.profileType type)
Parameters:
type - the type to set

getSerialversionuid

public static long getSerialversionuid()
Returns:
the serialversionuid

getJuldtomillisecondratio

public static java.lang.Double getJuldtomillisecondratio()
Returns:
the juldtomillisecondratio

getReferencedate

public static java.util.GregorianCalendar getReferencedate()
Returns:
the referencedate

getTablefields

public static java.util.Map<java.lang.String,java.lang.String> getTablefields()
Returns:
the tablefields

getMapfields

public static java.util.Map<java.lang.String,java.lang.String> getMapfields()
Returns:
the mapfields