org.apache.excalibur.instrument.manager.http
Class AbstractXMLHandler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable
org.apache.excalibur.instrument.manager.http.server.AbstractHTTPURLHandler
org.apache.excalibur.instrument.manager.http.server.AbstractHTTPURLPrintWriterHandler
org.apache.excalibur.instrument.manager.http.AbstractHandler
org.apache.excalibur.instrument.manager.http.AbstractXMLHandler
- All Implemented Interfaces:
- LogEnabled, Instrumentable, HTTPURLHandler
- Direct Known Subclasses:
- XMLCreateSampleHandler, XMLCreateSamplesHandler, XMLGCHandler, XMLInstrumentableHandler, XMLInstrumentHandler, XMLInstrumentManagerHandler, XMLSampleHandler, XMLSampleLeaseHandler, XMLSampleLeasesHandler, XMLSnapshotHandler, XMLSnapshotsHandler
public abstract class AbstractXMLHandler
- extends AbstractHandler
- Since:
- 4.1
- Version:
- CVS $Revision: 1.6 $ $Date: 2004/03/06 14:01:28 $
- Author:
- Avalon Development Team
Method Summary |
protected String |
makeSafeAttribute(String attribute)
|
protected void |
outputInstrument(PrintWriter out,
InstrumentDescriptor instrument,
String indent,
boolean recurse,
boolean packed)
|
protected void |
outputInstrumentable(PrintWriter out,
InstrumentableDescriptor instrumentable,
String indent,
boolean recurse,
boolean packed)
|
protected void |
outputInstrumentableBrief(PrintWriter out,
InstrumentableDescriptor instrumentable,
String indent,
boolean packed)
|
protected void |
outputInstrumentBrief(PrintWriter out,
InstrumentDescriptor instrument,
String indent,
boolean packed)
|
protected void |
outputInstrumentManager(PrintWriter out,
DefaultInstrumentManager manager,
String indent,
boolean recurse,
boolean packed,
boolean readOnly)
|
protected void |
outputLine(PrintWriter out,
String indent,
boolean packed,
String line)
|
protected void |
outputSample(PrintWriter out,
InstrumentSampleDescriptor sample,
String indent,
boolean packed)
|
protected void |
outputSampleBrief(PrintWriter out,
InstrumentSampleDescriptor sample,
String indent,
boolean packed)
|
protected void |
outputSampleHistory(PrintWriter out,
InstrumentSampleDescriptor sample,
String indent,
long baseTime,
boolean packed,
boolean compact)
|
protected String |
replaceToken(String str,
String oldToken,
String newToken)
Replaces one token with another in a string. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDENT
protected static final String INDENT
- See Also:
- Constant Field Values
AbstractXMLHandler
public AbstractXMLHandler(String path,
DefaultInstrumentManager manager,
InstrumentManagerHTTPConnector connector)
- Creates a new AbstractXMLHandler.
- Parameters:
path
- The path handled by this handler.manager
- Reference to the instrument manager interface.connector
- The InstrumentManagerHTTPConnector.
replaceToken
protected final String replaceToken(String str,
String oldToken,
String newToken)
- Replaces one token with another in a string.
- Parameters:
str
- String with tokens to be replaced.oldToken
- The token to be replaced.newToken
- The new token value.
- Returns:
- A new String that has had its tokens replaced.
makeSafeAttribute
protected final String makeSafeAttribute(String attribute)
outputLine
protected void outputLine(PrintWriter out,
String indent,
boolean packed,
String line)
outputInstrumentManager
protected void outputInstrumentManager(PrintWriter out,
DefaultInstrumentManager manager,
String indent,
boolean recurse,
boolean packed,
boolean readOnly)
throws IOException
- Throws:
IOException
outputInstrumentableBrief
protected void outputInstrumentableBrief(PrintWriter out,
InstrumentableDescriptor instrumentable,
String indent,
boolean packed)
throws IOException
- Throws:
IOException
outputInstrumentable
protected void outputInstrumentable(PrintWriter out,
InstrumentableDescriptor instrumentable,
String indent,
boolean recurse,
boolean packed)
throws IOException
- Throws:
IOException
outputInstrumentBrief
protected void outputInstrumentBrief(PrintWriter out,
InstrumentDescriptor instrument,
String indent,
boolean packed)
throws IOException
- Throws:
IOException
outputInstrument
protected void outputInstrument(PrintWriter out,
InstrumentDescriptor instrument,
String indent,
boolean recurse,
boolean packed)
throws IOException
- Throws:
IOException
outputSampleBrief
protected void outputSampleBrief(PrintWriter out,
InstrumentSampleDescriptor sample,
String indent,
boolean packed)
throws IOException
- Throws:
IOException
outputSample
protected void outputSample(PrintWriter out,
InstrumentSampleDescriptor sample,
String indent,
boolean packed)
throws IOException
- Throws:
IOException
outputSampleHistory
protected void outputSampleHistory(PrintWriter out,
InstrumentSampleDescriptor sample,
String indent,
long baseTime,
boolean packed,
boolean compact)
throws IOException
- Throws:
IOException
Copyright © 1997-2012 The Apache Software Foundation. All Rights Reserved.