org.eclipse.ohf.stem.ui.ge.servlet
Class StartServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.eclipse.ohf.stem.ui.ge.servlet.StartServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class StartServlet
extends javax.servlet.http.HttpServlet

StartServlet sends back a valid KML file for a GET or POST action that will give GoogleEarth the NetworkLink to start up the STEM SlideShow

 The way that it works is this:
    The invoking HTML will invoke this Servlet with the following
    parameters:
      folder 
      wait   
       
    The servlet builds a KML file that is launched to GoogleEarth that 
    has a networklink with the following URL
    http://localhost:8080/STEM/slideshow?id=&folder=&wait=
    where  is a unique id
           is the directory containing the 
            kml files generated by STEM.
           is "y" if it should wait for new files 
          to be generated    
     GoogleEarth will then issue http GET requests with 
     the specified URL

See Also:
Serialized Form

Field Summary
static java.lang.String CONTEXT
          Servlet context.
 
Constructor Summary
StartServlet()
           
 
Method Summary
 void init(javax.servlet.ServletConfig config)
          Handle the initial setup
 
Methods inherited from class javax.servlet.http.HttpServlet
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT

public static final java.lang.String CONTEXT
Servlet context.

See Also:
Constant Field Values
Constructor Detail

StartServlet

public StartServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Handle the initial setup

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException