org.molwind.servlet
Class MolwindServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.molwind.servlet.MolwindServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MolwindServlet
extends javax.servlet.http.HttpServlet

MolwindServlet serves tiles to a WorldWind client.

Version:
0.2
Author:
Oliver Karch, Sebastian Bremm
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_COMMAND
          Default name of a command
static java.lang.String DEFAULT_WORLD
          Default name of a Molwind world.
static java.lang.String PARAM_COMMAND
          Name of the parameter, which includes the name of the called command
static java.lang.String PARAM_WORLD
          Name of the parameter, which includes the name of the world.
 
Constructor Summary
MolwindServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Called by the server (via the service method) to allow a servlet to handle a GET request.
 void init(javax.servlet.ServletConfig config)
          Called by the servlet container to indicate that the servlet is being placed into service.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, 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

PARAM_WORLD

public static final java.lang.String PARAM_WORLD
Name of the parameter, which includes the name of the world.

See Also:
Constant Field Values

DEFAULT_WORLD

public static final java.lang.String DEFAULT_WORLD
Default name of a Molwind world.

See Also:
Constant Field Values

PARAM_COMMAND

public static final java.lang.String PARAM_COMMAND
Name of the parameter, which includes the name of the called command

See Also:
Constant Field Values

DEFAULT_COMMAND

public static final java.lang.String DEFAULT_COMMAND
Default name of a command

See Also:
Constant Field Values
Constructor Detail

MolwindServlet

public MolwindServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Called by the servlet container to indicate that the servlet is being placed into service.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - the ServletConfig object, contains configuration information for this servlet
Throws:
javax.servlet.ServletException - if an exception occurs that interrupts the servlet's normal operation

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException,
                  java.lang.NullPointerException
Called by the server (via the service method) to allow a servlet to handle a GET request.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - an HttpServletRequest object, contains the request the client has made of the servlet
response - an HttpServletResponse object, contains the response the servlet sends to the client
Throws:
javax.servlet.ServletException - if an exception occurs that interrupts the servlet's normal operation
java.io.IOException - is thrown upon i/o error
java.lang.NullPointerException


Copyright © 2008-2010. All Rights Reserved.