org.apache.excalibur.instrument.manager.http.server
Class AbstractHTTPURLPrintWriterHandler

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
All Implemented Interfaces:
HTTPURLHandler, Instrumentable, LogEnabled
Direct Known Subclasses:
AbstractHandler

public abstract class AbstractHTTPURLPrintWriterHandler
extends AbstractHTTPURLHandler

Since:
4.1
Version:
CVS $Revision: 1.1 $ $Date: 2004/03/06 14:01:28 $
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
AbstractHTTPURLPrintWriterHandler(java.lang.String path, java.lang.String contentType, java.lang.String encoding)
          Creates a new AbstractHTTPURLPrintWriterHandler.
 
Method Summary
 void doGet(java.lang.String path, java.util.Map parameters, java.io.OutputStream os)
          Handles the specified request.
abstract  void doGet(java.lang.String path, java.util.Map parameters, java.io.PrintWriter out)
          Handles the specified request.
 
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

AbstractHTTPURLPrintWriterHandler

public AbstractHTTPURLPrintWriterHandler(java.lang.String path,
                                         java.lang.String contentType,
                                         java.lang.String encoding)
Creates a new AbstractHTTPURLPrintWriterHandler.

Parameters:
path - The path handled by this handler.
contentType - The content type.
encoding - The encoding to use when writing servlet results.
Method Detail

doGet

public final void doGet(java.lang.String path,
                        java.util.Map parameters,
                        java.io.OutputStream os)
                 throws java.io.IOException
Handles the specified request.

Specified by:
doGet in class AbstractHTTPURLHandler
Parameters:
parameters - A Map of the parameters in the request.
os - The OutputStream to write the result to.
Throws:
java.io.IOException

doGet

public abstract void doGet(java.lang.String path,
                           java.util.Map parameters,
                           java.io.PrintWriter out)
                    throws java.io.IOException
Handles the specified request.

Parameters:
parameters - A Map of the parameters in the request.
Throws:
java.io.IOException


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