Package org.pentaho.platform.config
Class WebXml
- java.lang.Object
-
- org.pentaho.platform.config.WebXml
-
public class WebXml extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringBASE_URL_CONTEXT_PARAM_NAMEprotected static StringCONTEXT_CONFIG_CONTEXT_PARAM_NAMEprotected static StringCONTEXT_PARAM_ELEMENTprotected static StringCONTEXT_PARAM_NAME_TEMPLATE_XPATHprotected static StringCONTEXT_PARAM_XPATHprotected static StringENCODING_CONTEXT_PARAM_NAMEprotected static StringFULLY_QUALIFIED_SERVER_URL_CONTEXT_PARAM_NAMEprotected static StringHOME_SERVLET_NAMEprotected static StringLOCALE_COUNTRY_CONTEXT_PARAM_NAMEprotected static StringLOCALE_LANGUAGE_CONTEXT_PARAM_NAMEprotected static StringPARAM_NAME_ELEMENTprotected static StringPARAM_VALUE_ELEMENTprotected static StringROOT_ELEMENTprotected static StringSERVLET_NAME_TEMPLATE_XPATHprotected static StringSOLUTION_PATH_CONTEXT_PARAM_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetBaseUrl()Deprecated.usegetFullyQualifiedServerUrl()instead.StringgetContextConfigFileName()StringgetContextParamValue(String name)org.dom4j.DocumentgetDocument()StringgetEncoding()StringgetFullyQualifiedServerUrl()StringgetHomePage()StringgetLocaleCountry()StringgetLocaleLanguage()StringgetServletMapping(String name)StringgetSolutionPath()voidsetBaseUrl(String baseUrl)voidsetContextConfigFileName(String fileName)voidsetContextParamValue(String name, String value)voidsetEncoding(String encoding)voidsetFullyQualifiedServerUrl(String fullyQualifiedServerUrl)voidsetHomePage(String homePage)voidsetLocaleCountry(String country)voidsetLocaleLanguage(String language)booleansetServletMapping(String name, String value)voidsetSolutionPath(String solutionPath)
-
-
-
Field Detail
-
PARAM_NAME_ELEMENT
protected static final String PARAM_NAME_ELEMENT
- See Also:
- Constant Field Values
-
PARAM_VALUE_ELEMENT
protected static final String PARAM_VALUE_ELEMENT
- See Also:
- Constant Field Values
-
ROOT_ELEMENT
protected static final String ROOT_ELEMENT
- See Also:
- Constant Field Values
-
CONTEXT_CONFIG_CONTEXT_PARAM_NAME
protected static final String CONTEXT_CONFIG_CONTEXT_PARAM_NAME
- See Also:
- Constant Field Values
-
BASE_URL_CONTEXT_PARAM_NAME
protected static final String BASE_URL_CONTEXT_PARAM_NAME
- See Also:
- Constant Field Values
-
FULLY_QUALIFIED_SERVER_URL_CONTEXT_PARAM_NAME
protected static final String FULLY_QUALIFIED_SERVER_URL_CONTEXT_PARAM_NAME
- See Also:
- Constant Field Values
-
SOLUTION_PATH_CONTEXT_PARAM_NAME
protected static final String SOLUTION_PATH_CONTEXT_PARAM_NAME
- See Also:
- Constant Field Values
-
LOCALE_LANGUAGE_CONTEXT_PARAM_NAME
protected static final String LOCALE_LANGUAGE_CONTEXT_PARAM_NAME
- See Also:
- Constant Field Values
-
LOCALE_COUNTRY_CONTEXT_PARAM_NAME
protected static final String LOCALE_COUNTRY_CONTEXT_PARAM_NAME
- See Also:
- Constant Field Values
-
ENCODING_CONTEXT_PARAM_NAME
protected static final String ENCODING_CONTEXT_PARAM_NAME
- See Also:
- Constant Field Values
-
HOME_SERVLET_NAME
protected static final String HOME_SERVLET_NAME
- See Also:
- Constant Field Values
-
CONTEXT_PARAM_ELEMENT
protected static final String CONTEXT_PARAM_ELEMENT
- See Also:
- Constant Field Values
-
CONTEXT_PARAM_XPATH
protected static final String CONTEXT_PARAM_XPATH
- See Also:
- Constant Field Values
-
CONTEXT_PARAM_NAME_TEMPLATE_XPATH
protected static final String CONTEXT_PARAM_NAME_TEMPLATE_XPATH
- See Also:
- Constant Field Values
-
SERVLET_NAME_TEMPLATE_XPATH
protected static final String SERVLET_NAME_TEMPLATE_XPATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebXml
public WebXml(File pentahoXmlFile) throws IOException, org.dom4j.DocumentException, org.pentaho.platform.api.util.XmlParseException
- Throws:
IOExceptionorg.dom4j.DocumentExceptionorg.pentaho.platform.api.util.XmlParseException
-
WebXml
public WebXml(String xml) throws org.dom4j.DocumentException, org.pentaho.platform.api.util.XmlParseException
- Throws:
org.dom4j.DocumentExceptionorg.pentaho.platform.api.util.XmlParseException
-
WebXml
public WebXml(org.dom4j.Document doc) throws org.dom4j.DocumentException- Throws:
org.dom4j.DocumentException
-
WebXml
public WebXml()
-
-
Method Detail
-
getContextConfigFileName
public String getContextConfigFileName()
-
getBaseUrl
@Deprecated public String getBaseUrl()
Deprecated.usegetFullyQualifiedServerUrl()instead.- Returns:
- the fully qualified url of the server
-
getFullyQualifiedServerUrl
public String getFullyQualifiedServerUrl()
-
getSolutionPath
public String getSolutionPath()
-
getLocaleLanguage
public String getLocaleLanguage()
-
getLocaleCountry
public String getLocaleCountry()
-
getEncoding
public String getEncoding()
-
getHomePage
public String getHomePage()
-
setContextConfigFileName
public void setContextConfigFileName(String fileName)
-
setBaseUrl
public void setBaseUrl(String baseUrl)
-
setFullyQualifiedServerUrl
public void setFullyQualifiedServerUrl(String fullyQualifiedServerUrl)
-
setSolutionPath
public void setSolutionPath(String solutionPath)
-
setLocaleLanguage
public void setLocaleLanguage(String language)
-
setLocaleCountry
public void setLocaleCountry(String country)
-
setEncoding
public void setEncoding(String encoding)
-
setHomePage
public void setHomePage(String homePage)
-
getDocument
public org.dom4j.Document getDocument()
-
-