org.apache.excalibur.instrument.manager.http.server
Interface HTTPURLHandler

All Known Implementing Classes:
AbstractHandler, AbstractHTMLHandler, AbstractHTTPURLHandler, AbstractHTTPURLPrintWriterHandler, AbstractXMLHandler, FavIconHandler, HTMLCreateSampleHandler, HTMLGCHandler, HTMLInstrumentableHandler, HTMLInstrumentHandler, HTMLInstrumentManagerHandler, HTMLRootHandler, HTMLSampleHandler, HTMLSampleLeaseHandler, SampleChartHandler, XMLCreateSampleHandler, XMLCreateSamplesHandler, XMLGCHandler, XMLInstrumentableHandler, XMLInstrumentHandler, XMLInstrumentManagerHandler, XMLSampleHandler, XMLSampleLeaseHandler, XMLSampleLeasesHandler, XMLSnapshotHandler, XMLSnapshotsHandler

public interface HTTPURLHandler

Since:
4.1
Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:29 $
Author:
Avalon Development Team

Field Summary
static String CONTENT_TYPE_IMAGE_JPEG
           
static String CONTENT_TYPE_IMAGE_X_ICON
           
static String CONTENT_TYPE_TEXT_HTML
           
static String CONTENT_TYPE_TEXT_XML
           
 
Method Summary
 String getContentType()
          Returns the content type.
 String getEncoding()
          Return the encoding to use.
 String getPath()
          Returns the path handled by this handler.
 void handleRequest(String path, Map parameters, OutputStream os)
          Handles the specified request.
 

Field Detail

CONTENT_TYPE_TEXT_HTML

static final String CONTENT_TYPE_TEXT_HTML
See Also:
Constant Field Values

CONTENT_TYPE_TEXT_XML

static final String CONTENT_TYPE_TEXT_XML
See Also:
Constant Field Values

CONTENT_TYPE_IMAGE_JPEG

static final String CONTENT_TYPE_IMAGE_JPEG
See Also:
Constant Field Values

CONTENT_TYPE_IMAGE_X_ICON

static final String CONTENT_TYPE_IMAGE_X_ICON
See Also:
Constant Field Values
Method Detail

getPath

String getPath()
Returns the path handled by this handler.

Returns:
The path handled by this handler.

getContentType

String getContentType()
Returns the content type.

Returns:
The content type.

getEncoding

String getEncoding()
Return the encoding to use.

Returns:
the encoding.

handleRequest

void handleRequest(String path,
                   Map parameters,
                   OutputStream os)
                   throws IOException
Handles the specified request.

Parameters:
The - full path being handled.
parameters - A Map of the parameters in the request.
os - The OutputStream to write the result to.
Throws:
IOException


Copyright © 1997-2012 Apache Software Foundation. All Rights Reserved.