Class JndiName

    • Method Detail

      • getLocalName

        public String getLocalName()
        Get the local JNDI entry name. Eg. java:comp/enc => enc
        Returns:
        The local JNDI entry name
      • getParent

        public JndiName getParent()
        Get the parent JNDI name. Eg. java:comp/enc => java:comp
        Returns:
        The parent JNDI name
      • getAbsoluteName

        public String getAbsoluteName()
        Get the absolute JNDI name as a string.
        Returns:
        The absolute JNDI name as a string
      • append

        public JndiName append​(String local)
        Create a new JNDI name by appending a new local entry name to this name.
        Parameters:
        local - The new local part to append
        Returns:
        A new JNDI name
      • of

        public static JndiName of​(String name)
        Create a new instance of the JndiName by breaking the provided string format into a JndiName parts.
        Parameters:
        name - The string representation of a JNDI name.
        Returns:
        The JndiName representation
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object