com.atlassian.bamboo.fileserver
Class MimeTypeLoader

java.lang.Object
  extended by com.atlassian.bamboo.configuration.DefaultContentHandler
      extended by com.atlassian.bamboo.fileserver.MimeTypeLoader
All Implemented Interfaces:
org.xml.sax.ContentHandler

public class MimeTypeLoader
extends DefaultContentHandler

This class loads the mimetypes xml configuration file.


Nested Class Summary
 class MimeTypeLoader.ExtensionElementParser
           
 class MimeTypeLoader.MimeMappingElementParser
           
 class MimeTypeLoader.MimeTypeElementParser
           
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.configuration.DefaultContentHandler
DEFAULT_PARSER
 
Constructor Summary
MimeTypeLoader()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getMimeTypes()
           
 void loadConfiguration(java.io.InputStream configurationFile)
           
 
Methods inherited from class com.atlassian.bamboo.configuration.DefaultContentHandler
characters, endDocument, endElement, endPrefixMapping, hasParserFor, ignorableWhitespace, processingInstruction, registerElementParser, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeTypeLoader

public MimeTypeLoader()
Method Detail

loadConfiguration

public void loadConfiguration(java.io.InputStream configurationFile)
                       throws ConfigurationException
Throws:
ConfigurationException

getMimeTypes

public java.util.Map<java.lang.String,java.lang.String> getMimeTypes()


Copyright © 2012 Atlassian. All Rights Reserved.