public class HttpConfigTemplateContext extends ContextImpl implements Context
Constructor and Description |
---|
HttpConfigTemplateContext(HttpConfigTemplate httpConfigTemplate) |
HttpConfigTemplateContext(Map map,
HttpConfigTemplate httpConfigTemplate) |
Modifier and Type | Method and Description |
---|---|
boolean |
exist(String name)
检测参数是否存在
|
<T> T |
get(String name)
查询元素顺序:context的itemMap最优先查询;其次是查询template的client元素;最后查询template的header元素
|
HttpConfigTemplate |
getTemplate() |
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 HttpConfigTemplateContext(HttpConfigTemplate httpConfigTemplate)
public HttpConfigTemplateContext(Map map, HttpConfigTemplate httpConfigTemplate)
public HttpConfigTemplate getTemplate()
public boolean exist(String name)
BaseContext
exist
in interface BaseContext
exist
in class ContextImpl
name
- 参数名称public <T> T get(String name)
get
in interface BaseContext
get
in class ContextImpl
name
- 参数名称Copyright © 2006–2018 TinyGroup. All rights reserved.