Examples of Hashtable


Examples of Framework.HashTable

    private HashTable typeValue;

    public HTTPFactory() {
        super();
        TextData txt = null;
        this.typeValue = new HashTable();
        this.typeName = new Array_Of_TextData<TextData>();

        //  Field name of headers are case insensitives (HTTP spec)
        HashFuncs hashFunctions = new HashFuncs(true, Framework.Constants.SP_KT_STRING, HashFuncs.qq_Resolver.cIGNORECASE_KEYTYPE);
        this.typeValue.setup(16, hashFunctions, true);
View Full Code Here

Examples of com.foundationdb.qp.util.HashTable

            TAP_OPEN.in();
            try {
                // Usually super.open called first, but needs to be done
                // opposite order here to allow Using_HashFilter access
                // to the filled HashTable in the bindings.
                HashTable hashTable = buildHashTable();
                bindings.setHashTable(tableBindingPosition, hashTable);
                super.open();
            } finally {
                TAP_OPEN.out();
            }
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable

  try {
      final int classCount = _bytecodes.length;
      _class = new Class[classCount];

      if (classCount > 1) {
          _auxClasses = new Hashtable();
      }

      for (int i = 0; i < classCount; i++) {
    _class[i] = loader.defineClass(_bytecodes[i]);
    final Class superClass = _class[i].getSuperclass();
View Full Code Here

Examples of java.util.Hashtable

  public void initialize(boolean firstTime) {
    cleanWaitingRequest(System.currentTimeMillis());

    receiving = false;
    messages = new Vector();
    deliveredMsgs = new Hashtable();

    if (firstTime) return;

    // Retrieving the persisted messages, if any.
    List persistedMsgs = Message.loadAll(getMsgTxPrefix().toString());
View Full Code Here

Examples of java.util.Hashtable

    /**
     * Default constructor.
     */
    public MimeTypeParameterList() {
        parameters = new Hashtable();
    }
View Full Code Here

Examples of java.util.Hashtable

    }

    public MimeTypeParameterList(String rawdata)
  throws MimeTypeParseException
    {
        parameters = new Hashtable();
       
        //    now parse rawdata
        parse(rawdata);
    }
View Full Code Here

Examples of java.util.Hashtable

   */
  private InitialLdapContext initializeLDAPContext() throws ResourceException {
      // Create the root context.
    InitialLdapContext initContext;

    Hashtable connenv = new Hashtable();
    connenv.put(Context.INITIAL_CONTEXT_FACTORY, this.config.getLdapContextFactory());
    connenv.put(Context.PROVIDER_URL, this.config.getLdapUrl());
    connenv.put(Context.REFERRAL, LDAP_REFERRAL_MODE);
    // If username is blank, we will perform an anonymous bind.
    // Note: This is not supported when using Sun's VLVs, so remove this if VLVs are used.
    if(!this.config.getLdapAdminUserDN().equals("")) { //$NON-NLS-1$

      connenv.put(Context.SECURITY_AUTHENTICATION, LDAP_AUTH_TYPE);
      connenv.put(Context.SECURITY_PRINCIPAL, this.config.getLdapAdminUserDN());
      connenv.put(Context.SECURITY_CREDENTIALS, this.config.getLdapAdminUserPassword());
    } else {
      LogManager.logDetail(LogConstants.CTX_CONNECTOR, "LDAP Username DN was blank; performing anonymous bind."); //$NON-NLS-1$
      connenv.put(Context.SECURITY_AUTHENTICATION, "none"); //$NON-NLS-1$
    }
   
    if(this.config.getLdapTxnTimeoutInMillis() != -1) {
      connenv.put("com.sun.jndi.ldap.connect.timeout", this.config.getLdapTxnTimeoutInMillis()); //$NON-NLS-1$
    }
   
    // Enable connection pooling for the Initial context.
    connenv.put("com.sun.jndi.ldap.connect.pool", "true"); //$NON-NLS-1$ //$NON-NLS-2$
    connenv.put("com.sun.jndi.ldap.connect.pool.debug", "fine"); //$NON-NLS-1$ //$NON-NLS-2$
   
    try {
      initContext = new InitialLdapContext(connenv, null);
    } catch(NamingException ne){
            final String msg = LDAPPlugin.Util.getString("LDAPConnection.directoryNamingError",ne.getExplanation()); //$NON-NLS-1$
View Full Code Here

Examples of java.util.Hashtable

    if ( initialCapacity <= 0 || loadFactor <= 0.0 )
      throw new IllegalArgumentException();
    this.loadFactor = loadFactor;
    threshold = (int) ( initialCapacity * loadFactor ) - 1;
    eachCapacity = initialCapacity / nBuckets + 1;
    oldTable = new Hashtable( eachCapacity, loadFactor );
    newTable = new Hashtable( eachCapacity, loadFactor );
  }
View Full Code Here

Examples of java.util.Hashtable

      {
  if ( size() >= threshold )
    {
      // Rotate the tables.
      oldTable = newTable;
      newTable = new Hashtable( eachCapacity, loadFactor );
    }
      }
    return oldValue;
  }
View Full Code Here

Examples of java.util.Hashtable

   * @param classes the classnames to work on
   * @return for each distinct root element in the classnames, one entry in
   * the hashtable (with the root element as key)
   */
  public static Hashtable sortClassesByRoot(String classes) {
    Hashtable                 roots;
    Hashtable                 result;
    Enumeration               enm;
    int                       i;
    StringTokenizer           tok;
    String                    clsname;
    Vector                    list;
    HierarchyPropertyParser   hpp;
    String                    separator;
    String                    root;
    String                    tmpStr;
   
    if (classes == null)
      return null;
   
    roots     = new Hashtable();
    hpp       = new HierarchyPropertyParser();
    separator = hpp.getSeperator();
   
    // go over all classnames and store them in the hashtable, with the
    // root element as the key
    tok   = new StringTokenizer(classes, ", ");
    while (tok.hasMoreElements()) {
      clsname = tok.nextToken();
      root    = getRootFromClass(clsname, separator);
      if (root == null)
        continue;
     
      // already stored?
      if (!roots.containsKey(root)) {
        list = new Vector();
        roots.put(root, list);
      }
      else {
        list = (Vector) roots.get(root);
      }
     
      list.add(clsname);
    }
   
    // build result
    result = new Hashtable();
    enm    = roots.keys();
    while (enm.hasMoreElements()) {
      root = (String) enm.nextElement();
      list = (Vector) roots.get(root);
      tmpStr = "";
      for (i = 0; i < list.size(); i++) {
        if (i > 0)
          tmpStr += ",";
        tmpStr += (String) list.get(i);
      }
      result.put(root, tmpStr);
    }
     
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.