public class WebXml extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
BASE_URL_CONTEXT_PARAM_NAME |
protected static String |
CONTEXT_CONFIG_CONTEXT_PARAM_NAME |
protected static String |
CONTEXT_PARAM_ELEMENT |
protected static String |
CONTEXT_PARAM_NAME_TEMPLATE_XPATH |
protected static String |
CONTEXT_PARAM_XPATH |
protected static String |
ENCODING_CONTEXT_PARAM_NAME |
protected static String |
FULLY_QUALIFIED_SERVER_URL_CONTEXT_PARAM_NAME |
protected static String |
HOME_SERVLET_NAME |
protected static String |
LOCALE_COUNTRY_CONTEXT_PARAM_NAME |
protected static String |
LOCALE_LANGUAGE_CONTEXT_PARAM_NAME |
protected static String |
PARAM_NAME_ELEMENT |
protected static String |
PARAM_VALUE_ELEMENT |
protected static String |
ROOT_ELEMENT |
protected static String |
SERVLET_NAME_TEMPLATE_XPATH |
protected static String |
SOLUTION_PATH_CONTEXT_PARAM_NAME |
Constructor and Description |
---|
WebXml() |
WebXml(org.dom4j.Document doc) |
WebXml(File pentahoXmlFile) |
WebXml(String xml) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
Deprecated.
use
getFullyQualifiedServerUrl() instead. |
String |
getContextConfigFileName() |
String |
getContextParamValue(String name) |
org.dom4j.Document |
getDocument() |
String |
getEncoding() |
String |
getFullyQualifiedServerUrl() |
String |
getHomePage() |
String |
getLocaleCountry() |
String |
getLocaleLanguage() |
String |
getServletMapping(String name) |
String |
getSolutionPath() |
void |
setBaseUrl(String baseUrl) |
void |
setContextConfigFileName(String fileName) |
void |
setContextParamValue(String name,
String value) |
void |
setEncoding(String encoding) |
void |
setFullyQualifiedServerUrl(String fullyQualifiedServerUrl) |
void |
setHomePage(String homePage) |
void |
setLocaleCountry(String country) |
void |
setLocaleLanguage(String language) |
boolean |
setServletMapping(String name,
String value) |
void |
setSolutionPath(String solutionPath) |
protected static final String PARAM_NAME_ELEMENT
protected static final String PARAM_VALUE_ELEMENT
protected static final String ROOT_ELEMENT
protected static final String CONTEXT_CONFIG_CONTEXT_PARAM_NAME
protected static final String BASE_URL_CONTEXT_PARAM_NAME
protected static final String FULLY_QUALIFIED_SERVER_URL_CONTEXT_PARAM_NAME
protected static final String SOLUTION_PATH_CONTEXT_PARAM_NAME
protected static final String LOCALE_LANGUAGE_CONTEXT_PARAM_NAME
protected static final String LOCALE_COUNTRY_CONTEXT_PARAM_NAME
protected static final String ENCODING_CONTEXT_PARAM_NAME
protected static final String HOME_SERVLET_NAME
protected static final String CONTEXT_PARAM_ELEMENT
protected static final String CONTEXT_PARAM_XPATH
protected static final String CONTEXT_PARAM_NAME_TEMPLATE_XPATH
protected static final String SERVLET_NAME_TEMPLATE_XPATH
public WebXml(File pentahoXmlFile) throws IOException, org.dom4j.DocumentException, XmlParseException
IOException
org.dom4j.DocumentException
XmlParseException
public WebXml(String xml) throws org.dom4j.DocumentException, XmlParseException
org.dom4j.DocumentException
XmlParseException
public WebXml(org.dom4j.Document doc) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public WebXml()
public String getContextConfigFileName()
@Deprecated public String getBaseUrl()
getFullyQualifiedServerUrl()
instead.public String getFullyQualifiedServerUrl()
public String getSolutionPath()
public String getLocaleLanguage()
public String getLocaleCountry()
public String getEncoding()
public String getHomePage()
public void setContextConfigFileName(String fileName)
public void setBaseUrl(String baseUrl)
public void setFullyQualifiedServerUrl(String fullyQualifiedServerUrl)
public void setSolutionPath(String solutionPath)
public void setLocaleLanguage(String language)
public void setLocaleCountry(String country)
public void setEncoding(String encoding)
public void setHomePage(String homePage)
public org.dom4j.Document getDocument()
Copyright © 2017 Hitachi Vantara. All rights reserved.