com.atlassian.bamboo.plugin.servlet
Class BambooContentTypeResolver

java.lang.Object
  extended by com.atlassian.bamboo.plugin.servlet.BambooContentTypeResolver
All Implemented Interfaces:
com.atlassian.plugin.servlet.ContentTypeResolver, org.springframework.web.context.ServletContextAware

public class BambooContentTypeResolver
extends java.lang.Object
implements com.atlassian.plugin.servlet.ContentTypeResolver, org.springframework.web.context.ServletContextAware

Utility class to resolve content type of resources/files (aka mimetype)


Field Summary
static java.lang.String MIME_TYPE_CONFIGURATION_FILE
           
 
Constructor Summary
BambooContentTypeResolver()
           
 
Method Summary
 java.lang.String getContentType(java.lang.String requestUrl)
           
protected  java.util.Map<java.lang.String,java.lang.String> getMimeTypes()
           
 void init()
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIME_TYPE_CONFIGURATION_FILE

public static final java.lang.String MIME_TYPE_CONFIGURATION_FILE
See Also:
Constant Field Values
Constructor Detail

BambooContentTypeResolver

public BambooContentTypeResolver()
Method Detail

init

public void init()

getContentType

public java.lang.String getContentType(java.lang.String requestUrl)
Specified by:
getContentType in interface com.atlassian.plugin.servlet.ContentTypeResolver

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware

getMimeTypes

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


Copyright © 2011 Atlassian. All Rights Reserved.