pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.site.content
Class AbstractBasicContentConfig

java.lang.Object
  extended by org.torweg.pulse.configuration.AbstractConfigBean
      extended by org.torweg.pulse.site.content.AbstractBasicContentConfig
All Implemented Interfaces:
java.io.Serializable, ConfigBean

public class AbstractBasicContentConfig
extends AbstractConfigBean

global configuration for AbstractBasicContent.

Version:
$Revision: 1861 $
Author:
Thomas Weber
See Also:
Serialized Form

Constructor Summary
AbstractBasicContentConfig()
           
 
Method Summary
 java.lang.String convert(java.lang.String suffix, java.util.Locale contentLocale)
          converts a suffix to a search engine optimised URL containing only URL safe characters.
protected  java.util.Map<java.util.Locale,SuffixConverter> getConverters()
          returns a Map of the known locales and their corresponding SuffixConverters.
 void init(org.jdom.Element conf)
          initialises the ConfigBean.
 
Methods inherited from class org.torweg.pulse.configuration.AbstractConfigBean
buildClass, buildInstance, lastModified, setLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBasicContentConfig

public AbstractBasicContentConfig()
Method Detail

init

public void init(org.jdom.Element conf)
initialises the ConfigBean.

Parameters:
conf - the config XML
See Also:
ConfigBean.init(org.jdom.Element)

convert

public final java.lang.String convert(java.lang.String suffix,
                                      java.util.Locale contentLocale)
converts a suffix to a search engine optimised URL containing only URL safe characters.

Parameters:
suffix - the suffix
contentLocale - the locale of the content
Returns:
the converted suffix

getConverters

protected final java.util.Map<java.util.Locale,SuffixConverter> getConverters()
returns a Map of the known locales and their corresponding SuffixConverters.

Returns:
the converters as an unmodifiable map