org.ofbiz.webapp.control
Class ConfigXMLReader

java.lang.Object
  extended by org.ofbiz.webapp.control.ConfigXMLReader

public class ConfigXMLReader
extends java.lang.Object

ConfigXMLReader.java - Reads and parses the XML site config files.


Nested Class Summary
static class ConfigXMLReader.ControllerConfig
           
static class ConfigXMLReader.Event
           
static class ConfigXMLReader.RequestMap
           
static class ConfigXMLReader.RequestResponse
           
static class ConfigXMLReader.ViewMap
           
 
Field Summary
static UtilCache<java.net.URL,ConfigXMLReader.ControllerConfig> controllerCache
           
static UtilCache<java.lang.String,java.util.List<ConfigXMLReader.ControllerConfig>> controllerSearchResultsCache
           
static java.lang.String controllerXmlFileName
           
static ConfigXMLReader.RequestResponse emptyNoneRequestResponse
           
static java.lang.String module
           
 
Constructor Summary
ConfigXMLReader()
           
 
Method Summary
static java.util.Set<java.lang.String> findControllerFilesWithRequest(java.lang.String requestUri, java.lang.String controllerPartialPath)
           
static java.util.Set<java.lang.String> findControllerRequestUniqueForTargetType(java.lang.String target, java.lang.String urlMode)
           
static ConfigXMLReader.ControllerConfig getControllerConfig(java.net.URL url)
           
static java.net.URL getControllerConfigURL(ServletContext context)
           
static org.w3c.dom.Element loadDocument(java.net.URL location)
          Loads the XML file and returns the root element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

controllerXmlFileName

public static final java.lang.String controllerXmlFileName
See Also:
Constant Field Values

controllerCache

public static UtilCache<java.net.URL,ConfigXMLReader.ControllerConfig> controllerCache

controllerSearchResultsCache

public static UtilCache<java.lang.String,java.util.List<ConfigXMLReader.ControllerConfig>> controllerSearchResultsCache

emptyNoneRequestResponse

public static final ConfigXMLReader.RequestResponse emptyNoneRequestResponse
Constructor Detail

ConfigXMLReader

public ConfigXMLReader()
Method Detail

getControllerConfigURL

public static java.net.URL getControllerConfigURL(ServletContext context)

getControllerConfig

public static ConfigXMLReader.ControllerConfig getControllerConfig(java.net.URL url)

findControllerFilesWithRequest

public static java.util.Set<java.lang.String> findControllerFilesWithRequest(java.lang.String requestUri,
                                                                             java.lang.String controllerPartialPath)
                                                                      throws GeneralException
Throws:
GeneralException

findControllerRequestUniqueForTargetType

public static java.util.Set<java.lang.String> findControllerRequestUniqueForTargetType(java.lang.String target,
                                                                                       java.lang.String urlMode)
                                                                                throws GeneralException
Throws:
GeneralException

loadDocument

public static org.w3c.dom.Element loadDocument(java.net.URL location)
Loads the XML file and returns the root element