Class RequestContextELResolver

java.lang.Object
jakarta.el.ELResolver
org.springframework.webflow.expression.el.RequestContextELResolver

public class RequestContextELResolver extends jakarta.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 Details

    • REQUEST_CONTEXT_VARIABLE_NAME

      public static final String REQUEST_CONTEXT_VARIABLE_NAME
      Name of the request context variable.
      See Also:
  • Constructor Details

    • RequestContextELResolver

      public RequestContextELResolver()
    • RequestContextELResolver

      public RequestContextELResolver(RequestContext context)
  • Method Details

    • getCommonPropertyType

      public Class<?> getCommonPropertyType(jakarta.el.ELContext elContext, Object base)
      Specified by:
      getCommonPropertyType in class jakarta.el.ELResolver
    • getFeatureDescriptors

      public Iterator<FeatureDescriptor> getFeatureDescriptors(jakarta.el.ELContext elContext, Object base)
      Overrides:
      getFeatureDescriptors in class jakarta.el.ELResolver
    • getType

      public Class<?> getType(jakarta.el.ELContext elContext, Object base, Object property)
      Specified by:
      getType in class jakarta.el.ELResolver
    • getValue

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

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

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

      protected RequestContext getRequestContext()