public class AllHttpScopesHashModel extends SimpleHash
TemplateHashModelEx2.KeyValuePair, TemplateHashModelEx2.KeyValuePairIteratorNOTHING| Constructor and Description |
|---|
AllHttpScopesHashModel(ObjectWrapper objectWrapper,
javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request)
Creates a new instance of AllHttpScopesHashModel for handling a single
HTTP servlet request.
|
| Modifier and Type | Method and Description |
|---|---|
TemplateModel |
get(java.lang.String key)
Gets a TemplateModel from the hash.
|
void |
putUnlistedModel(java.lang.String key,
TemplateModel model)
Stores a model in the hash so that it doesn't show up in keys()
and values() methods.
|
containsKey, copyMap, isEmpty, keys, keyValuePairIterator, put, put, putAll, remove, size, synchronizedWrapper, toMap, toString, valuesgetDefaultObjectWrapper, getObjectWrapper, setDefaultObjectWrapper, setObjectWrapper, wrappublic AllHttpScopesHashModel(ObjectWrapper objectWrapper, javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request)
objectWrapper - the object wrapper to use; not null.context - the servlet context of the web applicationrequest - the HTTP servlet request being processedpublic void putUnlistedModel(java.lang.String key,
TemplateModel model)
key - the key under which the model is storedmodel - the stored modelpublic TemplateModel get(java.lang.String key) throws TemplateModelException
TemplateHashModelget in interface TemplateHashModelget in class SimpleHashkey - the name by which the TemplateModel
is identified in the template.TemplateModelException