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:
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
 Map<String,String> getMimeTypes()
           
 void loadConfiguration(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(InputStream configurationFile)
                       throws ConfigurationException
Throws:
ConfigurationException

getMimeTypes

public Map<String,String> getMimeTypes()


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.