com.atlassian.bamboo.plugin.servlet
Class BambooContentTypeResolver
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIME_TYPE_CONFIGURATION_FILE
public static final java.lang.String MIME_TYPE_CONFIGURATION_FILE
- See Also:
- Constant Field Values
BambooContentTypeResolver
public BambooContentTypeResolver()
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.