public class SpringTemplateContext extends ContextImpl implements TemplateContext
Constructor and Description |
---|
SpringTemplateContext(javax.servlet.http.HttpServletRequest request) |
SpringTemplateContext(Map<String,?> model,
javax.servlet.http.HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
boolean |
exist(String name)
检测参数是否存在
|
<T> T |
get(String name)
改写get方法,使得可以从父环境中查找,同时,也可以从子环境中查找 先找自己,再找子,再找父
|
clear, clearSubContext, contain, containNodeMap, createSubContext, existNodeMap, findNodeMap, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalContext, getTotalItemMap, put, putContext, putSubContext, remove, removeSubContext, renameKey, renameKeyNodeMap, setParent
get, put, putAll, remove, setItemMap, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearSubContext, createSubContext, getInSubContext, getItemMap, getParent, getSubContext, getSubContextMap, getTotalItemMap, put, putSubContext, remove, removeSubContext, setParent
public SpringTemplateContext(Map<String,?> model, javax.servlet.http.HttpServletRequest request)
public SpringTemplateContext(javax.servlet.http.HttpServletRequest request)
public boolean exist(String name)
BaseContext
exist
in interface BaseContext
exist
in class ContextImpl
name
- 参数名称public <T> T get(String name)
ContextImpl
get
in interface BaseContext
get
in class ContextImpl
name
- 参数名称Copyright © 2006–2018 TinyGroup. All rights reserved.