Class SecureUberspector

  • All Implemented Interfaces:
    org.apache.velocity.util.introspection.Uberspect, org.apache.velocity.util.RuntimeServicesAware

    public class SecureUberspector
    extends org.apache.velocity.util.introspection.UberspectImpl
    implements org.apache.velocity.util.RuntimeServicesAware
    SecureUberspector is way too restrictive regarding Class methods allowed.
    Since:
    5.4RC1
    Version:
    $Id: 62e7067edb2253182e916b59b8e6d60656ef2eec $
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.velocity.util.introspection.UberspectImpl

        org.apache.velocity.util.introspection.UberspectImpl.VelGetterImpl, org.apache.velocity.util.introspection.UberspectImpl.VelMethodImpl, org.apache.velocity.util.introspection.UberspectImpl.VelSetterImpl
    • Field Summary

      • Fields inherited from class org.apache.velocity.util.introspection.UberspectImpl

        conversionHandler, introspector, log, rsvc
    • Constructor Detail

      • SecureUberspector

        public SecureUberspector()
    • Method Detail

      • init

        public void init()
        Specified by:
        init in interface org.apache.velocity.util.introspection.Uberspect
        Overrides:
        init in class org.apache.velocity.util.introspection.UberspectImpl
      • getIterator

        public Iterator getIterator​(Object obj,
                                    org.apache.velocity.util.introspection.Info i)
        Get an iterator from the given object. Since the superclass method this secure version checks for execute permission.
        Specified by:
        getIterator in interface org.apache.velocity.util.introspection.Uberspect
        Overrides:
        getIterator in class org.apache.velocity.util.introspection.UberspectImpl
        Parameters:
        obj - object to iterate over
        i - line, column, template info
        Returns:
        Iterator for object