de.fhg.igd.gps.servlets
Class GPSServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byde.fhg.igd.semoa.web.servlet.ImageServlet
              extended byde.fhg.igd.gps.servlets.GPSServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class GPSServlet
extends ImageServlet

This servlet class provides maps according to the current location (given by the GPSService). Called via the registered URL, this servlet supports the following parameters:

See Also:
Serialized Form

Field Summary
protected  WGS84Coordinate currentLocation_
           
protected  boolean fit_
           
protected  boolean focus_
           
protected  GPSService gps_
           
protected  int height_
           
protected  boolean history_
           
protected  MapInfo mapInfo_
           
protected  SortedMap mapRequester_
           
static String MR_DA1
           
static String MR_DA2
           
static String MR_DA3
           
static String MR_MAPBLAST
           
protected  int width_
           
 
Fields inherited from class de.fhg.igd.semoa.web.servlet.ImageServlet
imageCache_, transparentColor_, typeCache_
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
GPSServlet()
           
 
Method Summary
 BufferedImage createImage(javax.servlet.http.HttpServletRequest request)
           
protected  long getCacheLifespan()
           
 boolean imageHasChanged(javax.servlet.http.HttpServletRequest request)
           
 void init(javax.servlet.ServletConfig servletConfig)
           
protected  boolean markCurrentLocation(WGS84Coordinate location, MapInfo info, BufferedImage image, Color color)
           
protected  void reset()
           
 
Methods inherited from class de.fhg.igd.semoa.web.servlet.ImageServlet
doGet, doPost, getTransparentColor, setTransparentColor
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MR_MAPBLAST

public static final String MR_MAPBLAST
See Also:
Constant Field Values

MR_DA1

public static final String MR_DA1
See Also:
Constant Field Values

MR_DA2

public static final String MR_DA2
See Also:
Constant Field Values

MR_DA3

public static final String MR_DA3
See Also:
Constant Field Values

currentLocation_

protected WGS84Coordinate currentLocation_

mapRequester_

protected SortedMap mapRequester_

gps_

protected GPSService gps_

mapInfo_

protected MapInfo mapInfo_

history_

protected boolean history_

focus_

protected boolean focus_

fit_

protected boolean fit_

width_

protected int width_

height_

protected int height_
Constructor Detail

GPSServlet

public GPSServlet()
Method Detail

getCacheLifespan

protected long getCacheLifespan()
Overrides:
getCacheLifespan in class ImageServlet

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class ImageServlet
Throws:
javax.servlet.ServletException

reset

protected void reset()

markCurrentLocation

protected boolean markCurrentLocation(WGS84Coordinate location,
                                      MapInfo info,
                                      BufferedImage image,
                                      Color color)

imageHasChanged

public boolean imageHasChanged(javax.servlet.http.HttpServletRequest request)
Specified by:
imageHasChanged in class ImageServlet

createImage

public BufferedImage createImage(javax.servlet.http.HttpServletRequest request)
Specified by:
createImage in class ImageServlet


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.