Examples of CaseInsensitiveString


Examples of net.sf.sahi.util.CaseInsensitiveString

        return headers.get(keyIgnoreCase);
  }
 
  public void addHeaders(String key, List<String> newHeaders){
    if (newHeaders == null) return;
    CaseInsensitiveString keyIgnoreCase = new CaseInsensitiveString(key);
        List<String> entry = headers.get(keyIgnoreCase);
        if (entry == null) {
            entry = new ArrayList<String>();
            headers.put(keyIgnoreCase, entry);
        }
View Full Code Here

Examples of net.sf.sahi.util.CaseInsensitiveString

        }
        entry.addAll(newHeaders);
  }
 
  public String getLastHeader(String key){
        List<String> entry = headers.get(new CaseInsensitiveString(key));
        if (entry == null)
            return null;
        return (String) entry.get(entry.size() - 1);
  }
View Full Code Here

Examples of net.sf.sahi.util.CaseInsensitiveString

 
    public String toString() {
        StringBuffer sb = new StringBuffer();
        Iterator<CaseInsensitiveString> keys = headers.keySet().iterator();
        while (keys.hasNext()) {
            CaseInsensitiveString key = (CaseInsensitiveString) keys.next();
            if (key.isNull()) continue;
            List<String> values = headers.get(key);
            int size = values.size();
            for (int i = 0; i < size; i++) {
                String value = (String) values.get(i);
                sb.append(key).append(": ").append(value).append("\r\n");
View Full Code Here

Examples of net.sf.sahi.util.CaseInsensitiveString

            }
        }
        return sb.toString();
    }
  public void removeHeader(String key) {
    headers.remove(new CaseInsensitiveString(key));
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.schemainfo.CaseInsensitiveString

         // _knownTables is just a cache to prevent creating a new String each time
         String table = _knownTables.get(_caseInsensitiveStringBuffer);
         if(null == table)
         {
            table = new String(buffer, offset, len);
            _knownTables.put(new CaseInsensitiveString(table), table);
         }

         if(SchemaInfo.TABLE_EXT_COLS_LOADED_IN_THIS_CALL == tableExtRes)
         {
            _squirrelRSyntaxTextArea.repaint();
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.schemainfo.CaseInsensitiveString

         // _knownTables is just a cache to prevent creating a new String each time
         String table = _knownTables.get(_caseInsensitiveStringBuffer);
         if(null == table)
         {
            table = new String(buffer, offset, len);
            _knownTables.put(new CaseInsensitiveString(table), table);
         }

         if(SchemaInfo.TABLE_EXT_COLS_LOADED_IN_THIS_CALL == tableExtRes)
         {
            _editorPane.repaint();
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.schemainfo.CaseInsensitiveString

    // create new columns in table
    if (mergedTableColumnInfos != null)
    {
      for (TableColumnInfo mc : mergedTableColumnInfos)
      {
        CaseInsensitiveString cistr = new CaseInsensitiveString(mc.getColumnName());
        if (customDialog.getMergeColumns().contains(cistr))
        {
          if (s_log.isDebugEnabled())
          {
            s_log.debug("Schema: " + mc.getSchemaName());
View Full Code Here

Examples of org.openntf.domino.types.CaseInsensitiveString

      System.out.println("Scanner reports processing " + scanner.getDocCount() + " documents, " + scanner.getItemCount()
          + " items, and " + scanner.getTokenCount() + " tokens.");
      System.out.println("Built field token map of " + scanner.getFieldTokenMap().size() + " entries");
      Map<?, ?> tfmap = scanner.getTokenLocationMap();
      System.out.println("Built token location map of " + tfmap.size() + " entries");
      CaseInsensitiveString dom = new CaseInsensitiveString("domino");
      if (tfmap.get(dom) != null) {
        int hitCount = 0;
        Map<?, ?> tlvalue = (Map<?, ?>) tfmap.get(dom);
        for (Object key : tlvalue.keySet()) {
          Set<?> hits = (Set<?>) tlvalue.get(key);
View Full Code Here

Examples of org.openntf.domino.types.CaseInsensitiveString

      Iterable values = (Iterable) value;
      for (Object o : values) {
        if (o instanceof CaseInsensitiveString) {
          result.add((CaseInsensitiveString) o);
        } else if (o instanceof CharSequence) {
          result.add(new CaseInsensitiveString(((CharSequence) o).toString()));
        } else {
          result.add(new CaseInsensitiveString(String.valueOf(o)));
        }
      }
    } else if (value instanceof CaseInsensitiveString) {
      result.add((CaseInsensitiveString) value);
    } else if (value instanceof CharSequence) {
      result.add(new CaseInsensitiveString(((CharSequence) value).toString()));
    } else {
      result.add(new CaseInsensitiveString(String.valueOf(value)));
    }
    return result;
  }
View Full Code Here

Examples of org.openntf.domino.types.CaseInsensitiveString

      String itemName = TERM_MAP_PREFIX + dbid;
      if (doc.hasItem(itemName)) {
        Map termMap = doc.getItemValue(itemName, Map.class);

        for (Object key : itemNames) {
          CaseInsensitiveString ciskey = null;
          if (key instanceof CaseInsensitiveString) {
            ciskey = (CaseInsensitiveString) key;
          } else if (key instanceof String) {
            ciskey = new CaseInsensitiveString((String) key);
          } else {
            ciskey = new CaseInsensitiveString(String.valueOf(key));
          }
          Object termObj = termMap.get(ciskey);
          if (termObj != null) {
            if (termObj instanceof Collection) {
              unids.addAll((Collection) termObj);
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.