org.hd.d.pg2k.webSvr.virtualHosts.AlohaEarth
Class AlohaEarthMapServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.hd.d.pg2k.webSvr.virtualHosts.AlohaEarth.AlohaEarthMapServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public final class AlohaEarthMapServlet
extends javax.servlet.http.HttpServlet

Servlet to serve dynamic Aloha Earth map image. This expects to be able to collect parameters with a AEParams object.

If the parameters are missing or out of bounds then a default image is produced.

The image produced is with the type indicated by DYN_MAP_IMG_TYPE, in an efficient (small), indexed format.

Images may be cached, possibly with SoftReference, though any such cache may need to be cleared when the exhibit set or meta data changes.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Unique Serialisation class ID generated by http://random.hd.org/.
 
Constructor Summary
AlohaEarthMapServlet()
           
 
Method Summary
 void doAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Respond to a GET/HEAD request for the content served by this servlet.
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Respond to a GET request for the content served by this servlet.
 void doHead(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Respond to a HEAD request for the content served by this servlet.
protected  long getLastModified(javax.servlet.http.HttpServletRequest request)
          Have the last-modified date be the AEP unchanged-since timestamp.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPost, doPut, doTrace, 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
Unique Serialisation class ID generated by http://random.hd.org/.

See Also:
Constant Field Values
Constructor Detail

AlohaEarthMapServlet

public AlohaEarthMapServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Respond to a GET request for the content served by this servlet.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - The servlet request we are processing
response - The servlet response we are producing
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs

doHead

public void doHead(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Respond to a HEAD request for the content served by this servlet.

Overrides:
doHead in class javax.servlet.http.HttpServlet
Parameters:
request - The servlet request we are processing
response - The servlet response we are producing
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs

doAction

public void doAction(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws java.io.IOException,
                     javax.servlet.ServletException
Respond to a GET/HEAD request for the content served by this servlet. Returns the exhibit data, with a correct MIME type.

Parameters:
request - The servlet request we are processing
response - The servlet response we are producing
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs

getLastModified

protected long getLastModified(javax.servlet.http.HttpServletRequest request)
Have the last-modified date be the AEP unchanged-since timestamp.

Overrides:
getLastModified in class javax.servlet.http.HttpServlet

DHD Multimedia Gallery V1.53.0

Copyright (c) 1996-2009, Damon Hart-Davis. All rights reserved.