|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.core.container.spring.avalon.SitemapHelper
Field Summary | |
static String |
DEFAULT_CHILD_PROPERTIES_LOCATION
The default location of spring related child configuration files. |
static String |
DEFAULT_CHILD_SPRING_CONFIGURATION_LOCATION
The default location of spring related child configuration files. |
Constructor Summary | |
SitemapHelper()
|
Method Summary | |
protected static void |
addAttribute(StringBuffer buffer,
String name,
String value)
Append an attribute to the xml stream if it has a value. |
protected static void |
addFooter(StringBuffer buffer)
Add the footer for the xml configuration file. |
protected static void |
addHeader(StringBuffer buffer)
Add the header for the xml configuration file. |
static WebApplicationContext |
createContainer(Configuration config,
String sitemapLocation,
org.apache.cocoon.classloader.reloading.Monitor fam,
ServletContext servletContext)
Create the per sitemap container. |
protected static String |
createDefinition(String uriPrefix,
String sitemapLocation,
List beanIncludes,
List propertyIncludes,
Properties props)
|
static Configuration |
createSitemapConfiguration(Configuration config)
|
protected static List |
getBeanIncludes(WebApplicationContext webAppContext,
String contextUrl,
Configuration sitemap)
Get all includes for bean configurations from the sitemap. |
protected static Properties |
getGlobalSitemapVariables(Configuration sitemap)
compatibility with 2.1.x - check for global variables in sitemap TODO - This will be removed in later versions! |
protected static List |
getPropertiesIncludes(WebApplicationContext webAppContext,
String contextUrl,
Configuration sitemap)
Get all includes for properties from the sitemap. |
protected static boolean |
isUsingDefaultIncludes(Configuration config)
Should the default includes be read for this sitemap? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEFAULT_CHILD_SPRING_CONFIGURATION_LOCATION
public static final String DEFAULT_CHILD_PROPERTIES_LOCATION
Constructor Detail |
public SitemapHelper()
Method Detail |
protected static String createDefinition(String uriPrefix, String sitemapLocation, List beanIncludes, List propertyIncludes, Properties props)
protected static void addHeader(StringBuffer buffer)
protected static void addFooter(StringBuffer buffer)
protected static void addAttribute(StringBuffer buffer, String name, String value)
protected static boolean isUsingDefaultIncludes(Configuration config)
protected static List getBeanIncludes(WebApplicationContext webAppContext, String contextUrl, Configuration sitemap) throws ConfigurationException
sitemap
-
ConfigurationException
protected static List getPropertiesIncludes(WebApplicationContext webAppContext, String contextUrl, Configuration sitemap) throws ConfigurationException
sitemap
-
ConfigurationException
protected static Properties getGlobalSitemapVariables(Configuration sitemap) throws ConfigurationException
ConfigurationException
public static Configuration createSitemapConfiguration(Configuration config) throws ConfigurationException
ConfigurationException
public static WebApplicationContext createContainer(Configuration config, String sitemapLocation, org.apache.cocoon.classloader.reloading.Monitor fam, ServletContext servletContext) throws Exception
config
- The sitemap as a configuration object.sitemapLocation
- The uri of the sitemapfam
- servletContext
- The servlet context
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |