Class FormatMap

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    public class FormatMap
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    A 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
      void afterPropertiesSet()  
      void setAgent​(java.lang.String agent)
      Sets the User Agent for which the formats apply
      void setFormats​(java.util.Map<java.lang.String,​java.lang.String> formats)
      Sets the formats
      void setMimetypes​(java.util.Map<java.lang.String,​java.lang.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 - 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:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception