org.springframework.webflow.expression.el
Class RequestContextELResolver

java.lang.Object
  extended by javax.el.ELResolver
      extended by org.springframework.webflow.expression.el.RequestContextELResolver

public class RequestContextELResolver
extends javax.el.ELResolver

Custom EL resolver that resolves the current RequestContext under the variable REQUEST_CONTEXT_VARIABLE_NAME. Allows for accessing any property of the RequestContext instance. For example: "#{flowRequestContext.conversationScope.myProperty}".

Author:
Jeremy Grelle

Field Summary
static String REQUEST_CONTEXT_VARIABLE_NAME
          Name of the request context variable.
 
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
RequestContextELResolver()
           
RequestContextELResolver(RequestContext context)
           
 
Method Summary
 Class getCommonPropertyType(javax.el.ELContext elContext, Object base)
           
 Iterator getFeatureDescriptors(javax.el.ELContext elContext, Object base)
           
 Class getType(javax.el.ELContext elContext, Object base, Object property)
           
 Object getValue(javax.el.ELContext elContext, Object base, Object property)
           
 boolean isReadOnly(javax.el.ELContext elContext, Object base, Object property)
           
 void setValue(javax.el.ELContext elContext, Object base, Object property, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_CONTEXT_VARIABLE_NAME

public static final String REQUEST_CONTEXT_VARIABLE_NAME
Name of the request context variable.

See Also:
Constant Field Values
Constructor Detail

RequestContextELResolver

public RequestContextELResolver()

RequestContextELResolver

public RequestContextELResolver(RequestContext context)
Method Detail

getCommonPropertyType

public Class getCommonPropertyType(javax.el.ELContext elContext,
                                   Object base)
Specified by:
getCommonPropertyType in class javax.el.ELResolver

getFeatureDescriptors

public Iterator getFeatureDescriptors(javax.el.ELContext elContext,
                                      Object base)
Specified by:
getFeatureDescriptors in class javax.el.ELResolver

getType

public Class getType(javax.el.ELContext elContext,
                     Object base,
                     Object property)
Specified by:
getType in class javax.el.ELResolver

getValue

public Object getValue(javax.el.ELContext elContext,
                       Object base,
                       Object property)
Specified by:
getValue in class javax.el.ELResolver

isReadOnly

public boolean isReadOnly(javax.el.ELContext elContext,
                          Object base,
                          Object property)
Specified by:
isReadOnly in class javax.el.ELResolver

setValue

public void setValue(javax.el.ELContext elContext,
                     Object base,
                     Object property,
                     Object value)
Specified by:
setValue in class javax.el.ELResolver