Package org.apache.ofbiz.webapp.control
Class ConfigXMLReader
java.lang.Object
org.apache.ofbiz.webapp.control.ConfigXMLReader
ConfigXMLReader.java - Reads and parses the XML site config files.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The type Controller config.static class
static class
static class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindControllerFilesWithRequest
(String requestUri, String controllerPartialPath) Find controller files with request set.findControllerRequestUniqueForTargetType
(String target, String urlMode) Find controller request unique for target type set.getControllerConfig
(URL url) Gets controller config.getControllerConfig
(ComponentConfig.WebappInfo webAppInfo) Gets controller config.static URL
getControllerConfigURL
(ServletContext context) Gets controller config url.Gets empty none request response.
-
Constructor Details
-
ConfigXMLReader
protected ConfigXMLReader()Instantiates a new Config xml reader.
-
-
Method Details
-
getEmptyNoneRequestResponse
Gets empty none request response.- Returns:
- the empty none request response
-
findControllerFilesWithRequest
public static Set<String> findControllerFilesWithRequest(String requestUri, String controllerPartialPath) throws GeneralException Find controller files with request set.- Parameters:
requestUri
- the request uricontrollerPartialPath
- the controller partial path- Returns:
- the set
- Throws:
GeneralException
- the general exception
-
findControllerRequestUniqueForTargetType
public static Set<String> findControllerRequestUniqueForTargetType(String target, String urlMode) throws GeneralException Find controller request unique for target type set.- Parameters:
target
- the targeturlMode
- the url mode- Returns:
- the set
- Throws:
GeneralException
- the general exception
-
getControllerConfig
public static ConfigXMLReader.ControllerConfig getControllerConfig(ComponentConfig.WebappInfo webAppInfo) throws WebAppConfigurationException, MalformedURLException Gets controller config.- Parameters:
webAppInfo
- the web app info- Returns:
- the controller config
- Throws:
WebAppConfigurationException
- the web app configuration exceptionMalformedURLException
- the malformed url exception
-
getControllerConfig
public static ConfigXMLReader.ControllerConfig getControllerConfig(URL url) throws WebAppConfigurationException Gets controller config.- Parameters:
url
- the url- Returns:
- the controller config
- Throws:
WebAppConfigurationException
- the web app configuration exception
-
getControllerConfigURL
Gets controller config url.- Parameters:
context
- the context- Returns:
- the controller config url
-