java.lang.Object
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 Details

    • FormatMap

      public FormatMap()
  • Method Details

    • setRegistry

      public void setRegistry(FormatRegistry registry)
      Sets the Format Registry
      Parameters:
      registry - FormatRegistry
    • setAgent

      public void setAgent(String agent)
      Sets the User Agent for which the formats apply
      Parameters:
      agent - String
    • setFormats

      public void setFormats(Map<String,String> formats)
      Sets the formats
      Parameters:
      formats - Map<String, String>
    • setMimetypes

      public void setMimetypes(Map<String,String> mimetypes)
      Sets the mimetypes
      Parameters:
      mimetypes - Map<String, String>
    • afterPropertiesSet

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