Class FormatMap
- java.lang.Object
-
- org.springframework.extensions.webscripts.FormatMap
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class FormatMap extends java.lang.Object implements org.springframework.beans.factory.InitializingBeanA map of mimetypes indexed by format.- Author:
- davidc
-
-
Constructor Summary
Constructors Constructor Description FormatMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidsetAgent(java.lang.String agent)Sets the User Agent for which the formats applyvoidsetFormats(java.util.Map<java.lang.String,java.lang.String> formats)Sets the formatsvoidsetMimetypes(java.util.Map<java.lang.String,java.lang.String> mimetypes)Sets the mimetypesvoidsetRegistry(FormatRegistry registry)Sets the Format Registry
-
-
-
Method Detail
-
setRegistry
public void setRegistry(FormatRegistry registry)
Sets the Format Registry- Parameters:
registry- FormatRegistry
-
setAgent
public void setAgent(java.lang.String agent)
Sets the User Agent for which the formats apply- Parameters:
agent- String
-
setFormats
public void setFormats(java.util.Map<java.lang.String,java.lang.String> formats)
Sets the formats- Parameters:
formats- Map
-
setMimetypes
public void setMimetypes(java.util.Map<java.lang.String,java.lang.String> mimetypes)
Sets the mimetypes- Parameters:
mimetypes- Map
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
-