HiRISE

HiRISE.HiReport.servlets
Class LogViewerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by HiRISE.HiReport.servlets.LogViewerServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class LogViewerServlet
extends javax.servlet.http.HttpServlet

Shows a Conductor log file formatted as XHTML.

Version:
1.4
See Also:
Serialized Form

Field Summary
protected  String base
          full path to root of web application
protected  String footer
          HTML for footer
protected  String header
          HTML for header
static String ID
          Our CVS ID
protected  Logger logger
          Our logger
 
Constructor Summary
LogViewerServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Accept the full path to a log file as an additional URL path argument.
 void init(javax.servlet.ServletConfig config)
          Load configuration from web application deployment descriptor.
 
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

ID

public static final String ID
Our CVS ID

See Also:
Constant Field Values

base

protected String base
full path to root of web application


header

protected String header
HTML for header


footer

protected String footer
HTML for footer


logger

protected Logger logger
Our logger

Constructor Detail

LogViewerServlet

public LogViewerServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Load configuration from web application deployment descriptor. Should specify initialization parameters "header" and "footer" as paths relative to the root of the web application.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - Configuration reference
Throws:
javax.servlet.ServletException - Initialization failed

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException
Accept the full path to a log file as an additional URL path argument. If the requested file does not have the extension "log", it will be rejected.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona