|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.soybeanMilk.core.config.parser.ConfigurationParser
org.soybeanMilk.web.config.parser.WebConfigurationParser
public class WebConfigurationParser
WEB解析器,它可以解析类路径资源文件和应用“/WEB-INF”下的配置文件
| 嵌套类摘要 |
|---|
| 从类 org.soybeanMilk.core.config.parser.ConfigurationParser 继承的嵌套类/接口 |
|---|
ConfigurationParser.ExecutableRefProxy |
| 字段摘要 | |
|---|---|
static java.lang.String |
TAG_EXCEPTION_HANDLER
|
static java.lang.String |
TAG_EXCEPTION_HANDLER_ATTR_ARG_KEY
|
static java.lang.String |
TAG_EXCEPTION_HANDLER_ATTR_EXECUTABLE
|
static java.lang.String |
TAG_TARGET
|
static java.lang.String |
TAG_TARGET_ATTR_TYPE
|
static java.lang.String |
TAG_TARGET_ATTR_URL
|
| 构造方法摘要 | |
|---|---|
WebConfigurationParser(Configuration configuration,
javax.servlet.ServletContext servletContext)
创建WEB解析器并预设存储配置对象 |
|
WebConfigurationParser(javax.servlet.ServletContext servletContext)
创建WEB解析器 |
|
| 方法摘要 | |
|---|---|
protected Action |
createActionIntance()
创建空的动作对象,用于从配置文件解析并设置其属性 |
protected Configuration |
createConfigurationInstance()
创建空的配置对象,用于从配置文件解析并设置其属性 |
protected ExceptionHandlerInfo |
createExceptionHandlerInfoInstane()
|
protected GenericConverter |
createGenericConverterInstance()
创建空的通用转换器对象,用于设置其属性 |
protected WebAction.Target |
createTargetInstance()
|
protected java.lang.String |
formatIncludeFileName(java.lang.String rawFileName)
|
protected java.lang.String |
getDefaultConfigFile()
取得默认配置文件 |
javax.servlet.ServletContext |
getServletContext()
|
protected WebConfiguration |
getWebConfiguration()
|
protected void |
parseExceptionHandlerInfo(org.w3c.dom.Element parent)
解析父元素下的异常处理器信息对象。 |
protected void |
parseGlobalConfigs()
解析全局配置 |
protected void |
parseRefs()
处理引用 |
protected void |
parseTarget(org.w3c.dom.Element parent,
WebAction action)
解析父元素下的目标信息对象,写入对应的动作对象中。 |
protected void |
processExceptionHanderInfoRefs()
替换异常处理器的代理为真实的可执行对象 |
protected void |
setActionProperties(Action action,
org.w3c.dom.Element element)
从元素中解析并设置动作的属性。 |
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
protected void |
setTargetInfoProperties(WebAction.Target targetInfo,
org.w3c.dom.Element element)
设置目标信息对象属性 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final java.lang.String TAG_EXCEPTION_HANDLER
public static final java.lang.String TAG_EXCEPTION_HANDLER_ATTR_EXECUTABLE
public static final java.lang.String TAG_EXCEPTION_HANDLER_ATTR_ARG_KEY
public static final java.lang.String TAG_TARGET
public static final java.lang.String TAG_TARGET_ATTR_URL
public static final java.lang.String TAG_TARGET_ATTR_TYPE
| 构造方法详细信息 |
|---|
public WebConfigurationParser(javax.servlet.ServletContext servletContext)
servletContext -
public WebConfigurationParser(Configuration configuration,
javax.servlet.ServletContext servletContext)
configuration - servletContext - | 方法详细信息 |
|---|
public javax.servlet.ServletContext getServletContext()
public void setServletContext(javax.servlet.ServletContext servletContext)
protected void parseGlobalConfigs()
ConfigurationParser 复制的描述
ConfigurationParser 中的 parseGlobalConfigsprotected void parseRefs()
ConfigurationParser 复制的描述
ConfigurationParser 中的 parseRefsprotected void parseExceptionHandlerInfo(org.w3c.dom.Element parent)
parent -
protected void setActionProperties(Action action,
org.w3c.dom.Element element)
ConfigurationParser 复制的描述
ConfigurationParser 中的 setActionProperties
protected void parseTarget(org.w3c.dom.Element parent,
WebAction action)
parent - action -
protected void setTargetInfoProperties(WebAction.Target targetInfo,
org.w3c.dom.Element element)
targetInfo - element - protected void processExceptionHanderInfoRefs()
protected java.lang.String formatIncludeFileName(java.lang.String rawFileName)
ConfigurationParser 中的 formatIncludeFileNameprotected java.lang.String getDefaultConfigFile()
ConfigurationParser 复制的描述
ConfigurationParser 中的 getDefaultConfigFileprotected Configuration createConfigurationInstance()
ConfigurationParser 复制的描述
ConfigurationParser 中的 createConfigurationInstanceprotected GenericConverter createGenericConverterInstance()
ConfigurationParser 复制的描述
ConfigurationParser 中的 createGenericConverterInstanceprotected Action createActionIntance()
ConfigurationParser 复制的描述
ConfigurationParser 中的 createActionIntanceprotected WebConfiguration getWebConfiguration()
protected ExceptionHandlerInfo createExceptionHandlerInfoInstane()
protected WebAction.Target createTargetInstance()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||