org.springframework.extensions.webscripts
Class FormatMap

java.lang.Object
  extended by org.springframework.extensions.webscripts.FormatMap
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class FormatMap
extends Object
implements org.springframework.beans.factory.InitializingBean

A map of mimetypes indexed by format.

Author:
davidc

Constructor Summary
FormatMap()
           
 
Method Summary
 void afterPropertiesSet()
           
 void setAgent(String agent)
          Sets the User Agent for which the formats apply
 void setFormats(Map<String,String> formats)
          Sets the formats
 void setMimetypes(Map<String,String> mimetypes)
          Sets the mimetypes
 void setRegistry(FormatRegistry registry)
          Sets the Format Registry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatMap

public FormatMap()
Method Detail

setRegistry

public void setRegistry(FormatRegistry registry)
Sets the Format Registry

Parameters:
registry -

setAgent

public void setAgent(String agent)
Sets the User Agent for which the formats apply

Parameters:
agent -

setFormats

public void setFormats(Map<String,String> formats)
Sets the formats

Parameters:
formats -

setMimetypes

public void setMimetypes(Map<String,String> mimetypes)
Sets the mimetypes

Parameters:
mimetypes -

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2009 SpringSource, Inc. All Rights Reserved.