Package com.jbidwatcher.util.queue

Examples of com.jbidwatcher.util.queue.DropQObject


  private void addAll(Collection<String> urls, String category, boolean interactive) {
    if (urls.isEmpty()) {
      JConfig.log().logDebug("No items on page!");
    } else {
      for (String url : urls) {
        MQFactory.getConcrete("drop").enqueueBean(new DropQObject(url.trim(), category, interactive));
      }
    }
  }
View Full Code Here


      }

      for (String auctionURL : allItemsOnPage) {
        if (auctionURL != null) {
          JConfig.log().logDebug("Adding: " + auctionURL.trim());
          MQFactory.getConcrete("drop").enqueueBean(new DropQObject(auctionURL.trim(), mTargetName, true));
        }
      }
    } else {
      String newEntry = dropped.toString();
      if(newEntry.matches("^.*(\\.(jpg|png|jpeg|gif|bmp))$")) {
        imageResolver.handle(newEntry, location);
      } else {
        MQFactory.getConcrete("drop").enqueueBean(new DropQObject(newEntry.trim(), mTargetName, true));
      }
    }
  }
View Full Code Here

    if(deQ instanceof String) {
      auctionURL = deQ.toString();
      label = null;
      interactive = true;
    } else {
      DropQObject dObj = (DropQObject) deQ;
      auctionURL = (String) dObj.getData();
      label = dObj.getLabel();
      interactive = dObj.isInteractive();
    }

    loadDroppedEntry(auctionURL, label, interactive);
  }
View Full Code Here

TOP

Related Classes of com.jbidwatcher.util.queue.DropQObject

Copyright © 2018 www.massapicom. 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.