TemplateHashModel
, TemplateHashModelEx
, TemplateModel
public class AllHttpScopesHashModel extends SimpleHash
NOTHING
Constructor | Description |
---|---|
AllHttpScopesHashModel(ObjectWrapper wrapper,
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 | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsKey, copyMap, isEmpty, keys, put, put, putAll, remove, size, synchronizedWrapper, toMap, toString, values
getDefaultObjectWrapper, getObjectWrapper, setDefaultObjectWrapper, setObjectWrapper, wrap
public AllHttpScopesHashModel(ObjectWrapper wrapper, javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request)
wrapper
- the object wrapper to usecontext
- 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
TemplateHashModel
get
in interface TemplateHashModel
get
in class SimpleHash
key
- the name by which the TemplateModel
is identified in the template.TemplateModelException