Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » naming » core » [javadoc | source]
org.apache.naming.core
public class: DirContextHelper [javadoc | source]
java.lang.Object
   org.apache.naming.core.DirContextHelper
Utility class providing additional operations on DirContexts. Instead of extending DirContext we use a helper who will work on any context, including 'foreign' ones ( like JNDI, etc ). Typical methods - conversions ( int, boolean), etc. This code should check if the context extend our BaseDirContext and use specific features ( like notes - to cache the conversion results for example ), but fallback for external contexts.
Field Summary
static  DirContextHelper instance     
Method from org.apache.naming.core.DirContextHelper Summary:
getBooleanAttribute,   getInstance,   getIntAttribute,   getLongAttribute,   getStringAttribute,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.naming.core.DirContextHelper Detail:
 public boolean getBooleanAttribute(DirContext ctx,
    String name) 
 public static DirContextHelper getInstance() 
 public int getIntAttribute(DirContext ctx,
    String name) 
 public long getLongAttribute(DirContext ctx,
    String name) 
 public String getStringAttribute(DirContext ctx,
    String name) 
 public String toString(DirContext ctx) 
    Debugging string - the context, imediate childs and attributes