Class FormatMap
java.lang.Object
org.springframework.extensions.webscripts.FormatMap
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
A map of mimetypes indexed by format.
- Author:
- davidc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidSets the User Agent for which the formats applyvoidsetFormats(Map<String, String> formats) Sets the formatsvoidsetMimetypes(Map<String, String> mimetypes) Sets the mimetypesvoidsetRegistry(FormatRegistry registry) Sets the Format Registry
-
Constructor Details
-
FormatMap
public FormatMap()
-
-
Method Details
-
setRegistry
Sets the Format Registry- Parameters:
registry- FormatRegistry
-
setAgent
Sets the User Agent for which the formats apply- Parameters:
agent- String
-
setFormats
Sets the formats- Parameters:
formats- Map<String, String>
-
setMimetypes
Sets the mimetypes- Parameters:
mimetypes- Map<String, String>
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-