Class JndiPropertyFilter


  • @Deprecated
    public class JndiPropertyFilter
    extends AbstractPropertyFilter
    Deprecated.
    since the switch to Log4j2 in CMS v12. Instead use LookupFilter which is log4j2 based.
    JndiPropertyFilter (Log4j1)

    This filter retrieves the property value by the name from the JNDI resources.

    Exammple configuration is: <filter class="org.onehippo.cms7.logging.log4j.JndiPropertyFilter"> <param name="name" value="logging/contextName"/> <param name="resourceRef" value="true"/> <param name="value" value="cms"/> <param name="onMatchOption" value="ACCEPT"/> </filter>
    • Field Detail

      • CONTAINER_PREFIX

        public static final String CONTAINER_PREFIX
        Deprecated.
        JNDI prefix used in a J2EE container
        See Also:
        Constant Field Values
    • Constructor Detail

      • JndiPropertyFilter

        public JndiPropertyFilter()
        Deprecated.
    • Method Detail

      • isResourceRef

        public boolean isResourceRef()
        Deprecated.
        Return whether the lookup occurs in a J2EE container.
      • setResourceRef

        public void setResourceRef​(boolean resourceRef)
        Deprecated.
        Set whether the lookup occurs in a J2EE container, i.e. if the prefix "java:comp/env/" needs to be added if the key (JNDI name) doesn't already contain it. Default is "false". Note: Will only get applied if no other scheme (e.g. "java:") is given.
        Parameters:
        resourceRef -