org.apache.excalibur.instrument.manager.http
Class AbstractHTMLHandler

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.excalibur.instrument.AbstractLogEnabledInstrumentable
          extended byorg.apache.excalibur.instrument.manager.http.server.AbstractHTTPURLHandler
              extended byorg.apache.excalibur.instrument.manager.http.server.AbstractHTTPURLPrintWriterHandler
                  extended byorg.apache.excalibur.instrument.manager.http.AbstractHandler
                      extended byorg.apache.excalibur.instrument.manager.http.AbstractHTMLHandler
All Implemented Interfaces:
HTTPURLHandler, Instrumentable, LogEnabled
Direct Known Subclasses:
HTMLCreateSampleHandler, HTMLGCHandler, HTMLInstrumentableHandler, HTMLInstrumentHandler, HTMLInstrumentManagerHandler, HTMLRootHandler, HTMLSampleHandler, HTMLSampleLeaseHandler

public abstract class AbstractHTMLHandler
extends AbstractHandler

Since:
4.1
Version:
CVS $Revision: 1.7 $ $Date: 2004/03/10 13:56:56 $
Author:
Avalon Development Team

Field Summary
 
Fields inherited from interface org.apache.excalibur.instrument.manager.http.server.HTTPURLHandler
CONTENT_TYPE_IMAGE_JPEG, CONTENT_TYPE_IMAGE_X_ICON, CONTENT_TYPE_TEXT_HTML, CONTENT_TYPE_TEXT_XML
 
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY
 
Constructor Summary
AbstractHTMLHandler(java.lang.String path, DefaultInstrumentManager manager)
          Creates a new AbstractHTMLHandler.
 
Method Summary
protected  void breadCrumbs(java.io.PrintWriter out, boolean link)
           
protected  void breadCrumbs(java.io.PrintWriter out, InstrumentableDescriptor desc, boolean link)
           
protected  void breadCrumbs(java.io.PrintWriter out, InstrumentDescriptor desc, boolean link)
           
protected  void breadCrumbs(java.io.PrintWriter out, InstrumentSampleDescriptor desc, boolean link)
           
protected  void endTable(java.io.PrintWriter out)
           
protected  void endTableHeaderRow(java.io.PrintWriter out)
           
protected  void endTableRow(java.io.PrintWriter out)
           
protected  void footer(java.io.PrintWriter out)
           
protected  void outputInstrumentables(java.io.PrintWriter out, InstrumentableDescriptor[] descs)
           
protected  void outputInstruments(java.io.PrintWriter out, InstrumentDescriptor[] descs)
           
protected  void outputInstrumentSamples(java.io.PrintWriter out, InstrumentSampleDescriptor[] descs, boolean readOnly)
           
protected  void startTable(java.io.PrintWriter out)
           
protected  void startTableHeaderRow(java.io.PrintWriter out)
           
protected  void startTableRow(java.io.PrintWriter out, int row)
           
protected  void tableCell(java.io.PrintWriter out, java.lang.String value)
           
protected  void tableCellRight(java.io.PrintWriter out, java.lang.String value)
           
protected  void tableHeaderCell(java.io.PrintWriter out, java.lang.String value)
           
protected  void tableRow(java.io.PrintWriter out, int row, java.lang.String label, java.lang.String value)
           
protected  java.lang.String urlEncode(java.lang.String str)
           
 
Methods inherited from class org.apache.excalibur.instrument.manager.http.AbstractHandler
getInstrumentManager
 
Methods inherited from class org.apache.excalibur.instrument.manager.http.server.AbstractHTTPURLPrintWriterHandler
doGet, doGet
 
Methods inherited from class org.apache.excalibur.instrument.manager.http.server.AbstractHTTPURLHandler
getBooleanParameter, getBooleanParameter, getContentType, getEncoding, getIntegerParameter, getIntegerParameter, getIntegerParameters, getLongParameter, getLongParameter, getLongParameters, getParameter, getParameter, getParameters, getPath, handleRequest
 
Methods inherited from class org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable
addChildInstrumentable, addInstrument, getChildInstrumentables, getInstrumentableName, getInstruments, setInstrumentableName
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHTMLHandler

public AbstractHTMLHandler(java.lang.String path,
                           DefaultInstrumentManager manager)
Creates a new AbstractHTMLHandler.

Parameters:
path - The path handled by this handler.
manager - Reference to the instrument manager interface.
Method Detail

urlEncode

protected java.lang.String urlEncode(java.lang.String str)

breadCrumbs

protected void breadCrumbs(java.io.PrintWriter out,
                           boolean link)

breadCrumbs

protected void breadCrumbs(java.io.PrintWriter out,
                           InstrumentableDescriptor desc,
                           boolean link)

breadCrumbs

protected void breadCrumbs(java.io.PrintWriter out,
                           InstrumentDescriptor desc,
                           boolean link)

breadCrumbs

protected void breadCrumbs(java.io.PrintWriter out,
                           InstrumentSampleDescriptor desc,
                           boolean link)

startTable

protected void startTable(java.io.PrintWriter out)
                   throws java.io.IOException
Throws:
java.io.IOException

endTable

protected void endTable(java.io.PrintWriter out)
                 throws java.io.IOException
Throws:
java.io.IOException

startTableHeaderRow

protected void startTableHeaderRow(java.io.PrintWriter out)
                            throws java.io.IOException
Throws:
java.io.IOException

endTableHeaderRow

protected void endTableHeaderRow(java.io.PrintWriter out)
                          throws java.io.IOException
Throws:
java.io.IOException

tableHeaderCell

protected void tableHeaderCell(java.io.PrintWriter out,
                               java.lang.String value)
                        throws java.io.IOException
Throws:
java.io.IOException

startTableRow

protected void startTableRow(java.io.PrintWriter out,
                             int row)
                      throws java.io.IOException
Throws:
java.io.IOException

endTableRow

protected void endTableRow(java.io.PrintWriter out)
                    throws java.io.IOException
Throws:
java.io.IOException

tableCell

protected void tableCell(java.io.PrintWriter out,
                         java.lang.String value)
                  throws java.io.IOException
Throws:
java.io.IOException

tableCellRight

protected void tableCellRight(java.io.PrintWriter out,
                              java.lang.String value)
                       throws java.io.IOException
Throws:
java.io.IOException

tableRow

protected void tableRow(java.io.PrintWriter out,
                        int row,
                        java.lang.String label,
                        java.lang.String value)
                 throws java.io.IOException
Throws:
java.io.IOException

footer

protected void footer(java.io.PrintWriter out)

outputInstrumentables

protected void outputInstrumentables(java.io.PrintWriter out,
                                     InstrumentableDescriptor[] descs)
                              throws java.io.IOException
Throws:
java.io.IOException

outputInstruments

protected void outputInstruments(java.io.PrintWriter out,
                                 InstrumentDescriptor[] descs)
                          throws java.io.IOException
Throws:
java.io.IOException

outputInstrumentSamples

protected void outputInstrumentSamples(java.io.PrintWriter out,
                                       InstrumentSampleDescriptor[] descs,
                                       boolean readOnly)
                                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.