net.sf.morph.context.contexts
Class JspContext

java.lang.Object
  extended by net.sf.morph.context.contexts.BaseContext
      extended by net.sf.morph.context.contexts.BaseHierarchicalContext
          extended by net.sf.morph.context.contexts.ReflectorHierarchicalContext
              extended by net.sf.morph.context.contexts.JspContext
All Implemented Interfaces:
java.util.Map, Context, DecoratedContext, DelegatingContext, HierarchicalContext

public class JspContext
extends ReflectorHierarchicalContext

Context for JSP pages that evaluates page context attributes, request parameters, request attributes, session attributes, and application attributes, in that order. Exposing request parameters in this manner is somewhat unusual, so HttpServletContext.setReflectingRequestParameters(boolean)can be called to turn this behavior off.

This class is not threadsafe, but since usually only a single thread is accessing a request at any given time, this should be OK.

Since:
Dec 4, 2004
Author:
Matt Sgarlata

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
JspContext()
           
JspContext(javax.servlet.jsp.PageContext pageContext)
           
 
Method Summary
 javax.servlet.jsp.PageContext getPageContext()
           
 boolean isReflectingRequestParameters()
           
 void setPageContext(javax.servlet.jsp.PageContext pageContext)
           
 void setReflectingRequestParameters(boolean reflectingRequestParameters)
           
 
Methods inherited from class net.sf.morph.context.contexts.ReflectorHierarchicalContext
checkConfiguration, getBeanReflector, getDelegate, getHierarchicalImpl, getPropertyNamesHierarchicalImpl, setBeanReflector, setDelegate, setHierarchicalImpl
 
Methods inherited from class net.sf.morph.context.contexts.BaseHierarchicalContext
getImpl, getParentContext, getPropertyNamesImpl, setImpl, setParentContext
 
Methods inherited from class net.sf.morph.context.contexts.BaseContext
clear, containsKey, containsValue, entrySet, get, get, get, get, get, getContextMapBridge, getConverter, getLanguage, getLog, getPropertyNames, isEmpty, keySet, put, putAll, remove, set, set, setContextMapBridge, setConverter, setLanguage, setLog, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.morph.context.HierarchicalContext
get, getParentContext, getPropertyNames, set, setParentContext
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

JspContext

public JspContext()

JspContext

public JspContext(javax.servlet.jsp.PageContext pageContext)
Method Detail

getPageContext

public javax.servlet.jsp.PageContext getPageContext()
Returns:
Returns the pageContext.

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pageContext)
Parameters:
pageContext - The pageContext to set.

isReflectingRequestParameters

public boolean isReflectingRequestParameters()

setReflectingRequestParameters

public void setReflectingRequestParameters(boolean reflectingRequestParameters)


Copyright © 2004-2008.