Package net.sourceforge.pebble.web.view

Examples of net.sourceforge.pebble.web.view.NotFoundView


    }
    if (blogEntry == null) {
      // just send back a 404 - this is probably somebody looking for a way
      // to send comment spam ;-)
      log.info("ignoring saveComment with no related blog entry (spam) from " + request.getRemoteAddr());
      return new NotFoundView();
    } else if (!blogEntry.isCommentsEnabled()) {
      return new CommentConfirmationView();
    }

    comment = createComment(request, blogEntry);
View Full Code Here


    }

  if (blogEntry == null) {
      // the entry cannot be found - it may have been removed or the
      // requesting URL was wrong
      return new NotFoundView();

    } else {
     
    String filename = this.buildPermalink(blogEntry);
    return new PdfView(blogEntry, filename + ".pdf");
View Full Code Here

      throw new ServletException(e);
    }
    if (blogEntry == null) {
      // just send back a 404 - this is probably somebody looking for a way
      // to send comment spam ;-)
      return new NotFoundView();
    } else if (!blogEntry.isTrackBacksEnabled()) {
      return new NotFoundView();
    }
    getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);

    TrackBackConfirmationStrategy strategy = blog.getTrackBackConfirmationStrategy();
View Full Code Here

    } catch (StaticPageServiceException e) {
      throw new ServletException(e);
    }

    if (staticPage == null) {
      return new NotFoundView();
    } else {
      getModel().put(Constants.STATIC_PAGE_KEY, staticPage);
      if (service.lock(staticPage)) {
        return new StaticPageFormView();
      } else {
View Full Code Here

    if (blogEntry == null) {
      // the entry cannot be found - it may have been removed or the
      // requesting URL was wrong

      return new NotFoundView();
    } else if (trackBackUrl == null || trackBackUrl.trim().length() == 0) {
      getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);
      return new TrackBackFormView();
    } else {
      // extract the information to send in the trackback
View Full Code Here

      throw new ServletException(e);
    }
    if (staticPage == null) {
      // the page cannot be found - it may have been removed or the
      // requesting URL was wrong
      return new NotFoundView();
    } else {
      getModel().put(Constants.STATIC_PAGE_KEY, staticPage);
      getModel().put(Constants.MONTHLY_BLOG, blog.getBlogForThisMonth());
      getModel().put("displayMode", "detail");
View Full Code Here

      }
    } catch (SecurityRealmException e) {
      log.error("Exception encountered", e);
    }

    return new NotFoundView();
  }
View Full Code Here

    if (blogEntry == null) {
      // the entry cannot be found - it may have been removed or the
      // requesting URL was wrong

      return new NotFoundView();
    } else if (!blogEntry.isPublished() && !(SecurityUtils.isUserAuthorisedForBlog(blog))) {
      // the entry exists, but isn't yet published
      return new NotFoundView();
    } else {
      getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);
      getModel().put(Constants.MONTHLY_BLOG, blog.getBlogForDay(blogEntry.getDate()).getMonth());
      getModel().put("displayMode", "detail");
View Full Code Here

    Month monthly;
    if (year != null && year.length() > 0 &&
        month != null && month.length() > 0) {
      monthly = blog.getBlogForMonth(Integer.parseInt(year), Integer.parseInt(month));
    } else {
      return new NotFoundView();
    }

    BlogService service = new BlogService();

    List<BlogEntry> blogEntries = null;
View Full Code Here

      blogEntry = service.getBlogEntry(blog, entry);
    } catch (BlogServiceException e) {
      throw new ServletException(e);
    }
    if (blogEntry == null) {
      return new NotFoundView();
    }

    getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);
   
    if (email != null && email.length() > 0) {
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.web.view.NotFoundView

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.