Package foo.domaintest.util

Examples of foo.domaintest.util.Key


      return;
    }
    String newBody = null;
    // Try to consider the second word (if any) as a stash token. If it is one, stash the headers.
    String token = Iterables.get(subjectWords, 1, null);
    if (token != null && memcache.load(new Key(TOKEN, token)) != null) {
    Map<String, Object> params = new HashMap<>();
      params.put("payload", rawHeaders);
      memcache.save(new Key(STASH, token), params, STASH_EXPIRATION);
      newBody = tempUrlFactory.getTempUrl(token);
    }
    String newSender = "tester@" + Splitter.on('@').splitToList(to).get(1);
    String newRecipient = Optional.fromNullable(replyTo).or(from);
    // We construct the references and in-reply-to headers according to RFC 5322 3.6.4. The new
View Full Code Here


      Expiration.byDeltaSeconds((int) HOURS.toSeconds(1));

  /** Store a random token in memcache and return it. */
  @Override
  public void run() {
    memcache.save(new Key(TOKEN, randomToken), true, TOKEN_EXPIRATION);
    response.setPayload(randomToken).send();
  }
View Full Code Here

TOP

Related Classes of foo.domaintest.util.Key

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.