org.globus.mds.webmds
Class WebmdsServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.globus.mds.webmds.WebmdsServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

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

Webmds servlet -- acquires some XML and applies some XSL to it. Several servlet configuration parameters control where the XML and XSL come from.

xmlSources
a space-separated list of sourceNames -- short names of sources of XML. These names will appear in other configuration parameters.
info
A sourceName specifying where the information to be displayed should come from.
xsl
A sourceName specifying where the xml transform (that will be applied to the information) will come from.
xmlSource.sourceName.class
the name a class that implements the WebmdsXmlSource interface. This class will be to be used to acquire XML if sourceName is specified as an info or xsl parameter
xmlSource.sourceName.param.class_specific_params
additional parameters to be passed to the xmlSource.sourceName.class. When these parameters are passed, the class_specific_params names will be used (i.e., the "xmlSource.sourceName.param." prefix will be stripped off).

See Also:
WebmdsXmlSource, Serialized Form

Field Summary
static String BASE_DIRECTORY_NAME
           
static String INFO_SOURCE_ARG_NAME
           
static String REQUEST_XSL_PARAM_PREFIX
           
static String XSL_SOURCE_ARG_NAME
           
 
Constructor Summary
WebmdsServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Respond to a GET request for the content produced by this servlet.
 void init(javax.servlet.ServletConfig config)
          Initialize the servlet (read configuration).
 
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

INFO_SOURCE_ARG_NAME

public static final String INFO_SOURCE_ARG_NAME
See Also:
Constant Field Values

XSL_SOURCE_ARG_NAME

public static final String XSL_SOURCE_ARG_NAME
See Also:
Constant Field Values

REQUEST_XSL_PARAM_PREFIX

public static final String REQUEST_XSL_PARAM_PREFIX
See Also:
Constant Field Values

BASE_DIRECTORY_NAME

public static final String BASE_DIRECTORY_NAME
See Also:
Constant Field Values
Constructor Detail

WebmdsServlet

public WebmdsServlet()
Method Detail

doGet

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

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

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Initialize the servlet (read configuration).

Throws:
javax.servlet.ServletException


Copyright © 1999-2006 University of Chicago. All rights reserved.