Package com.jbidwatcher.util.html

Examples of com.jbidwatcher.util.html.JHTML.grep()


    return new BidFormReturn(false, null, htmlDocument, loadedPage);
  }

  private void checkBidErrors(BidFormReturn inVal) throws BadBidException {
    JHTML htmlDocument = inVal.getDocument();
    String errMsg = htmlDocument.grep(mBidResultRegex);
    if(errMsg != null) {
      Matcher bidMatch = mFindBidResult.matcher(errMsg);
      bidMatch.find();
      String matched_error = bidMatch.group().toLowerCase();
      Integer result = getMatchedResult(matched_error);
View Full Code Here


      } catch(Exception ignored) {
        return AuctionServerInterface.BID_ERROR_CONNECTION;
      }
    }

    String errMsg = htmlDocument.grep(mBidResultRegex);
    if (errMsg != null) {
      Matcher bidMatch = mFindBidResult.matcher(errMsg);
      bidMatch.find();
      String matched_error = bidMatch.group().toLowerCase();
      Integer bidResult = getMatchedResult(matched_error);
View Full Code Here

        if (curForm != null) {
          MQFactory.getConcrete("login").enqueue("FAILED Couldn't find a password form on the sign in page.");
          return false;
        }
        enqueued = true;
        if(htdoc.grep(T.s("your.user.id.or.password.is.incorrect")) != null) {
          MQFactory.getConcrete("login").enqueue("FAILED Incorrect login information.");
        } else if(htdoc.grep(T.s("your.information.has.been.verified"))!=null) {
          MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
        } else if(htdoc.grep(T.s("mature.audiences.accepted")) != null) {
          MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
View Full Code Here

          return false;
        }
        enqueued = true;
        if(htdoc.grep(T.s("your.user.id.or.password.is.incorrect")) != null) {
          MQFactory.getConcrete("login").enqueue("FAILED Incorrect login information.");
        } else if(htdoc.grep(T.s("your.information.has.been.verified"))!=null) {
          MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
        } else if(htdoc.grep(T.s("mature.audiences.accepted")) != null) {
          MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
        } else if(htdoc.grep(T.s("mature.audiences.disallowed.outside.the.us")) != null) {
          MQFactory.getConcrete("login").enqueue("NEUTRAL Turn off 'Mature Audiences' in JBidwatcher configuration; it's not valid for non-US users.");
View Full Code Here

        enqueued = true;
        if(htdoc.grep(T.s("your.user.id.or.password.is.incorrect")) != null) {
          MQFactory.getConcrete("login").enqueue("FAILED Incorrect login information.");
        } else if(htdoc.grep(T.s("your.information.has.been.verified"))!=null) {
          MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
        } else if(htdoc.grep(T.s("mature.audiences.accepted")) != null) {
          MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
        } else if(htdoc.grep(T.s("mature.audiences.disallowed.outside.the.us")) != null) {
          MQFactory.getConcrete("login").enqueue("NEUTRAL Turn off 'Mature Audiences' in JBidwatcher configuration; it's not valid for non-US users.");
          JConfig.setConfiguration("ebay.mature", "false");
          JConfig.setConfiguration("ebay.international", "true");
View Full Code Here

          MQFactory.getConcrete("login").enqueue("FAILED Incorrect login information.");
        } else if(htdoc.grep(T.s("your.information.has.been.verified"))!=null) {
          MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
        } else if(htdoc.grep(T.s("mature.audiences.accepted")) != null) {
          MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
        } else if(htdoc.grep(T.s("mature.audiences.disallowed.outside.the.us")) != null) {
          MQFactory.getConcrete("login").enqueue("NEUTRAL Turn off 'Mature Audiences' in JBidwatcher configuration; it's not valid for non-US users.");
          JConfig.setConfiguration("ebay.mature", "false");
          JConfig.setConfiguration("ebay.international", "true");
        } else {
          JConfig.log().logFile("Neutral login result...", confirmed);
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.