Package org.xwiki.velocity.introspection
Class SecureUberspector
- java.lang.Object
-
- org.apache.velocity.util.introspection.UberspectImpl
-
- org.xwiki.velocity.introspection.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 regardingClass
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
-
-
Constructor Summary
Constructors Constructor Description SecureUberspector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator
getIterator(Object obj, org.apache.velocity.util.introspection.Info i)
Get an iterator from the given object.void
init()
-
Methods inherited from class org.apache.velocity.util.introspection.UberspectImpl
getConversionHandler, getMethod, getPropertyGet, getPropertySet, setLog, setRuntimeServices
-
-
-
-
Method Detail
-
init
public void init()
- Specified by:
init
in interfaceorg.apache.velocity.util.introspection.Uberspect
- Overrides:
init
in classorg.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 interfaceorg.apache.velocity.util.introspection.Uberspect
- Overrides:
getIterator
in classorg.apache.velocity.util.introspection.UberspectImpl
- Parameters:
obj
- object to iterate overi
- line, column, template info- Returns:
- Iterator for object
-
-