jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.html
Class HTMLJobWriter

java.lang.Object
  extended by cedar.jetweb.html.HTMLWriter
      extended by cedar.jetweb.html.HTMLJobWriter

public class HTMLJobWriter
extends HTMLWriter

A class containg a BufferedWriter and various methods for writing JetWeb objects to it.

Version:
$Date: 2006-04-14 14:23:21 +0100 (Fri, 14 Apr 2006) $ $Revision: 1104 $
Author:
Jon Butterworth

Field Summary
 
Fields inherited from class cedar.jetweb.html.HTMLWriter
dateFormat, dform, hidden, LISTLENGTH, modifiable, ofile, servletPath, verbose
 
Constructor Summary
HTMLJobWriter(java.io.PrintWriter out, java.lang.String newServletPath)
          Start a new html stream.
HTMLJobWriter(java.lang.String filename, java.lang.String newServletPath)
          Start a new html stream.
 
Method Summary
static java.lang.String getDescription(JobRequest jr)
          Return an HTML description of the job request.
static java.lang.String jobStats()
          Return a string listing the job statistics.
 
Methods inherited from class cedar.jetweb.html.HTMLWriter
close, display, displayList, endForm, endListPage, forwardTo, getWriter, listHiddenPars, listLogs, listPendingJobs, makeActionButtons, makeCommonForm, makeControlForm, makeRequestForm, makeSubmitButtons, setDateFormat, setHidden, setModifiable, setNumberFormat, setVerbose, startControlForm, startControlForm, startForm, writeDirChoiceForm, writeInputId, writeList, writeListContinued, writeOkCancel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLJobWriter

public HTMLJobWriter(java.io.PrintWriter out,
                     java.lang.String newServletPath)
Start a new html stream. This does nothing except assign the output stream and the path which will be used to refer back to the current servlet. This version writes output to the given PrintWriter.

Parameters:
out - - output writer
newServletPath - required for links back


HTMLJobWriter

public HTMLJobWriter(java.lang.String filename,
                     java.lang.String newServletPath)
Start a new html stream. This does nothing except assign the output stream and the path which will be used to refer back to the current servlet. This version writes output to the given file. (Deletes any existing file with the same name).

Parameters:
filename - for output file
newServletPath - required for links on output html page

Method Detail

jobStats

public static java.lang.String jobStats()
Return a string listing the job statistics.


getDescription

public static java.lang.String getDescription(JobRequest jr)
                                       throws JetWebException
Return an HTML description of the job request.

Returns:
html description (String)
Throws:
JetWebException