Lizzy v1.1.1

christophedelory.content.type
Class FileNameMapProvider

java.lang.Object
  extended by christophedelory.content.type.FileNameMapProvider
All Implemented Interfaces:
ContentTypeProvider

public class FileNameMapProvider
extends Object
implements ContentTypeProvider

A content type provider based on FileNameMap.

Version:
$Revision: 90 $
Author:
Christophe Delory

Constructor Summary
FileNameMapProvider()
           
 
Method Summary
 ContentType getContentType(String contentName)
          Returns a content type representing the given content name (file or URL).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameMapProvider

public FileNameMapProvider()
Method Detail

getContentType

public ContentType getContentType(String contentName)
Description copied from interface: ContentTypeProvider
Returns a content type representing the given content name (file or URL).

Specified by:
getContentType in interface ContentTypeProvider
Parameters:
contentName - a content (file or URL) name. Shall not be null.
Returns:
a content type. May be null if none was found.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.