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

All Known Implementing Classes:
AbstractHTTPURLHandler

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 java.lang.String CONTENT_TYPE_IMAGE_JPEG
           
static java.lang.String CONTENT_TYPE_IMAGE_X_ICON
           
static java.lang.String CONTENT_TYPE_TEXT_HTML
           
static java.lang.String CONTENT_TYPE_TEXT_XML
           
 
Method Summary
 java.lang.String getContentType()
          Returns the content type.
 java.lang.String getEncoding()
          Return the encoding to use.
 java.lang.String getPath()
          Returns the path handled by this handler.
 void handleRequest(java.lang.String path, java.util.Map parameters, java.io.OutputStream os)
          Handles the specified request.
 

Field Detail

CONTENT_TYPE_TEXT_HTML

public static final java.lang.String CONTENT_TYPE_TEXT_HTML
See Also:
Constant Field Values

CONTENT_TYPE_TEXT_XML

public static final java.lang.String CONTENT_TYPE_TEXT_XML
See Also:
Constant Field Values

CONTENT_TYPE_IMAGE_JPEG

public static final java.lang.String CONTENT_TYPE_IMAGE_JPEG
See Also:
Constant Field Values

CONTENT_TYPE_IMAGE_X_ICON

public static final java.lang.String CONTENT_TYPE_IMAGE_X_ICON
See Also:
Constant Field Values
Method Detail

getPath

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

Returns:
The path handled by this handler.

getContentType

public java.lang.String getContentType()
Returns the content type.

Returns:
The content type.

getEncoding

public java.lang.String getEncoding()
Return the encoding to use.

Returns:
the encoding.

handleRequest

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

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


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