Class RestrictedValueStack

  • All Implemented Interfaces:
    com.opensymphony.xwork2.util.ValueStack

    public class RestrictedValueStack
    extends Object
    implements com.opensymphony.xwork2.util.ValueStack
    Block all operations except for push, pop, peek, find, size.
    Since:
    8.5.5
    • Constructor Detail

      • RestrictedValueStack

        public RestrictedValueStack​(com.opensymphony.xwork2.util.ValueStack delegate)
    • Method Detail

      • getContext

        public Map<String,​Object> getContext()
        Specified by:
        getContext in interface com.opensymphony.xwork2.util.ValueStack
      • getActionContext

        public com.opensymphony.xwork2.ActionContext getActionContext()
        Specified by:
        getActionContext in interface com.opensymphony.xwork2.util.ValueStack
      • setDefaultType

        public void setDefaultType​(Class defaultType)
        Specified by:
        setDefaultType in interface com.opensymphony.xwork2.util.ValueStack
      • setExprOverrides

        public void setExprOverrides​(Map<Object,​Object> overrides)
        Specified by:
        setExprOverrides in interface com.opensymphony.xwork2.util.ValueStack
      • getExprOverrides

        public Map<Object,​Object> getExprOverrides()
        Specified by:
        getExprOverrides in interface com.opensymphony.xwork2.util.ValueStack
      • getRoot

        public com.opensymphony.xwork2.util.CompoundRoot getRoot()
        Specified by:
        getRoot in interface com.opensymphony.xwork2.util.ValueStack
      • setValue

        public void setValue​(String expr,
                             Object value)
        Specified by:
        setValue in interface com.opensymphony.xwork2.util.ValueStack
      • setParameter

        public void setParameter​(String expr,
                                 Object value)
        Specified by:
        setParameter in interface com.opensymphony.xwork2.util.ValueStack
      • setValue

        public void setValue​(String expr,
                             Object value,
                             boolean throwExceptionOnFailure)
        Specified by:
        setValue in interface com.opensymphony.xwork2.util.ValueStack
      • findString

        public String findString​(String expr)
        Specified by:
        findString in interface com.opensymphony.xwork2.util.ValueStack
      • findString

        public String findString​(String expr,
                                 boolean throwExceptionOnFailure)
        Specified by:
        findString in interface com.opensymphony.xwork2.util.ValueStack
      • findValue

        public Object findValue​(String expr)
        Specified by:
        findValue in interface com.opensymphony.xwork2.util.ValueStack
      • findValue

        public Object findValue​(String expr,
                                boolean throwExceptionOnFailure)
        Specified by:
        findValue in interface com.opensymphony.xwork2.util.ValueStack
      • findValue

        public Object findValue​(String expr,
                                Class asType)
        Specified by:
        findValue in interface com.opensymphony.xwork2.util.ValueStack
      • findValue

        public Object findValue​(String expr,
                                Class asType,
                                boolean throwExceptionOnFailure)
        Specified by:
        findValue in interface com.opensymphony.xwork2.util.ValueStack
      • peek

        public Object peek()
        Specified by:
        peek in interface com.opensymphony.xwork2.util.ValueStack
      • pop

        public Object pop()
        Specified by:
        pop in interface com.opensymphony.xwork2.util.ValueStack
      • push

        public void push​(Object o)
        Specified by:
        push in interface com.opensymphony.xwork2.util.ValueStack
      • set

        public void set​(String key,
                        Object o)
        Specified by:
        set in interface com.opensymphony.xwork2.util.ValueStack
      • size

        public int size()
        Specified by:
        size in interface com.opensymphony.xwork2.util.ValueStack