Examples of keys()


Examples of org.w3c.www.http.HttpBag.keys()

      error.setContent ("Invalid label format: "+format) ;
      throw new HTTPException (error) ;
  }
  // Get labels for each service, building out the ret hashtable
  StringBuffer sb = new StringBuffer(128) ;
  Enumeration  e  = services.keys() ;
  sb.append ("("+PICS.PICS_PROTOCOL_ID) ;
    sloop:
  while ( e.hasMoreElements() ) {
      String                n = (String) e.nextElement() ;
      LabelServiceInterface s = bureau.getLabelService (n) ;
View Full Code Here

Examples of play.Configuration.keys()

  private Map<String, String> getAttributes(final String subKey) {
    final Configuration attributes = getConfiguration().getConfig(
        SettingKeys.ATTRIBUTES + "." + subKey);
    if (attributes != null) {
      final Set<String> keys = attributes.keys();
      final Map<String, String> ret = new HashMap<String, String>(
          keys.size());
      for (final String key : keys) {
        ret.put(key, attributes.getString(key));
      }
View Full Code Here

Examples of railo.commons.io.cache.Cache.keys()

 
  public static Array call(PageContext pc, String filter, String cacheName) throws PageException {
    try {
      Cache cache = Util.getCache(pc,cacheName,ConfigImpl.CACHE_DEFAULT_OBJECT);
     
      List<String> keys = isFilter(filter)?cache.keys(new WildCardFilter(filter,true)):cache.keys();
      Iterator<String> it = keys.iterator();
      Array arr = new ArrayImpl();
      while(it.hasNext()){
        arr.append(it.next());
      }
View Full Code Here

Examples of railo.runtime.ComponentWrap.keys()

        try{
          ComponentAccess c = ComponentUtil.toComponentAccess(pc.loadComponent(value.getClass().getName()));
          ComponentWrap cw=ComponentWrap.toComponentWrap(Component.ACCESS_PRIVATE,c);
       
          // delete this scope data members
            Collection.Key[] keys = cw.keys();
            Object member;
            for(int i=0;i<keys.length;i++) {
              member = cw.get(keys[i]);
              if(member instanceof UDF) continue;
                    cw.removeEL(keys[i]);
View Full Code Here

Examples of railo.runtime.PageSourcePool.keys()

    Resource res;
    MappingImpl mapping;
    for(int i=0;i<mappings.length;i++){
      mapping=(MappingImpl)mappings[i];
      psp = mapping.getPageSourcePool();
      keys = psp.keys();
      for(int y=0;y<keys.length;y++)  {
        ps = (PageSourceImpl) psp.getPageSource(keys[y], false);
        if(ps.isLoad()) {
          elements++;
          res=mapping.getClassRootDirectory().getRealResource(ps.getJavaName()+".class");
View Full Code Here

Examples of redis.clients.jedis.Jedis.keys()

  public String[] keys() throws IOException {
    Jedis jedis = null;
    Boolean error = true;
    try {
      jedis = acquireConnection();
      Set<String> keySet = jedis.keys("*");
      error = false;
      return keySet.toArray(new String[keySet.size()]);
    } finally {
      if (jedis != null) {
        returnConnection(jedis, error);
View Full Code Here

Examples of siena.Json.keys()

  }
 
  public void testSortedMap() {
    Json json = Json.sortedMap().put("1", 1).put("400", 400).put("3", 3).put("2", 2);
   
    Iterator<String> keys = json.keys().iterator();
    assertEquals("1", keys.next());
    assertEquals("2", keys.next());
    assertEquals("3", keys.next());
    assertEquals("400", keys.next());
  }
View Full Code Here

Examples of twitter4j.internal.org.json.JSONObject.keys()

                type = null;
            } else {
                try {
                    JSONObject jo = jsonObject.getJSONObject(typ);
                    attrs = new LinkedHashMap<String, String>();
                    it = jo.keys();
                    while (it.hasNext()) {
                        String key = (String) it.next();
                        String value = jo.getString(key);
                        attrs.put(key, value);
                    }
View Full Code Here

Examples of twitter4j.org.json.JSONObject.keys()

        List<Trends> trends;
        try {
            Date asOf = parseDate(json.getString("as_of"));
            JSONObject trendsJson = json.getJSONObject("trends");
            trends = new ArrayList<Trends>(trendsJson.length());
            Iterator ite = trendsJson.keys();
            while (ite.hasNext()) {
                String key = (String) ite.next();
                JSONArray array = trendsJson.getJSONArray(key);
                Trend[] trendsArray = jsonArrayToTrendArray(array);
                if (key.length() == 19) {
View Full Code Here

Examples of voldemort.store.readonly.ReadOnlyStorageEngine.keys()

            Assert.assertEquals(entry.getValue(), found.get(0).getValue());
        }

        // also check the iterator - first key iterator...
        try {
            ClosableIterator<ByteArray> keyIterator = engine.keys();
            if(!saveKeys) {
                fail("Should have thrown an exception since this RO format does not support iterators");
            }
            int numElements = 0;
            while(keyIterator.hasNext()) {
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.