Package foo.domaintest.action.HttpErrorException

Examples of foo.domaintest.action.HttpErrorException.NotFoundException


/** An {@link Action} for unregistered paths. */
@NoMetrics
public class NotFoundAction implements GetAction, PostAction {
  @Override
  public void run() {
    throw new NotFoundException("Not found");
  }
View Full Code Here


  @SuppressWarnings("unchecked")
  public void run() {
    String token = Iterables.getLast(Splitter.on('/').split(requestPath), "");
    Map<String, Object> params = memcache.load(new Key(STASH, token));
    if (params == null) {
      throw new NotFoundException("No stashed request for this token");
    } else {
      response
          .setStatus((Integer) params.get("status"))
          .setSleepSeconds((Integer) params.get("sleepSeconds"))
          .setMimeType((String) params.get("mimeType"))
View Full Code Here

TOP

Related Classes of foo.domaintest.action.HttpErrorException.NotFoundException

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.