public final class ContextUtils extends Object
Modifier and Type | Method and Description |
---|---|
static TopicMapRepositoryIF |
getRepository(javax.servlet.ServletContext servletContext)
EXPERIMENTAL: Gets the topic map repository used by the navigator framework.
|
static Object |
getSingleValue(String name,
javax.servlet.jsp.PageContext pageContext)
PUBLIC: Returns the first value in the collection bound to a
specific variable in the current scope.
|
static Object |
getSingleValue(String name,
javax.servlet.ServletRequest request)
PUBLIC: Returns the first value in the collection bound to a
specific variable in the current scope.
|
static TopicMapIF |
getTopicMap(javax.servlet.jsp.PageContext pageContext)
EXPERIMENTAL: Get the topic map object the context tag is working
with.
|
static TopicMapIF |
getTopicMap(javax.servlet.ServletRequest request)
EXPERIMENTAL: Get the topic map object the context tag is working
with.
|
static Collection |
getValue(String name,
javax.servlet.jsp.PageContext pageContext)
PUBLIC: Returns the value bound to a specific variable in the
current scope.
|
static Collection |
getValue(String name,
javax.servlet.jsp.PageContext pageContext,
Collection defaultValue)
PUBLIC: Returns the value bound to a specific variable in the
current scope.
|
static void |
setSingleValue(String name,
javax.servlet.jsp.PageContext pageContext,
Object value)
PUBLIC: Sets the value of the named variable to a collection
consisting only of the single value given.
|
static void |
setValue(String name,
javax.servlet.jsp.PageContext pageContext,
Collection value)
PUBLIC: Sets the value of the named variable to the collection
given.
|
public static TopicMapRepositoryIF getRepository(javax.servlet.ServletContext servletContext)
public static TopicMapIF getTopicMap(javax.servlet.ServletRequest request)
public static TopicMapIF getTopicMap(javax.servlet.jsp.PageContext pageContext)
public static Collection getValue(String name, javax.servlet.jsp.PageContext pageContext)
public static Collection getValue(String name, javax.servlet.jsp.PageContext pageContext, Collection defaultValue)
public static Object getSingleValue(String name, javax.servlet.jsp.PageContext pageContext)
public static Object getSingleValue(String name, javax.servlet.ServletRequest request)
public static void setValue(String name, javax.servlet.jsp.PageContext pageContext, Collection value)