christophedelory.content.type.webapp
Class WebAppProvider
java.lang.Object
   christophedelory.content.type.webapp.WebAppProvider
christophedelory.content.type.webapp.WebAppProvider
- All Implemented Interfaces: 
- ContentTypeProvider
- public class WebAppProvider 
- extends Object- implements ContentTypeProvider
A content type provider based on the Apache Tomcat servlet web app main configuration.
- Version:
- $Revision: 91 $
- Author:
- Christophe Delory
| Constructor Summary | 
| WebAppProvider()Builds a new content type provider.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
WebAppProvider
public WebAppProvider()
- Builds a new content type provider.
 
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:
- getContentTypein interface- ContentTypeProvider
 
- 
- Parameters:
- contentName- a content (file or URL) name. Shall not be- null.
- Returns:
- a content type. May be nullif none was found.
 
Copyright © 2008-2009 Christophe Delory. All Rights Reserved.