Package net.sourceforge.pebble.domain

Examples of net.sourceforge.pebble.domain.AbstractBlog.log()


    } catch (IOException ioe) {
      ioe.printStackTrace();
      throw new ServletException(ioe);
    } finally {
      AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
      blog.log(request, getStatus());
    }
  }

  private String getTemplate() {
    if (!(getModel().get(Constants.BLOG_KEY) instanceof Blog)) {
View Full Code Here


      response.sendError(HttpServletResponse.SC_FORBIDDEN);
    } catch (IOException ioe) {
      throw new ServletException(ioe);
    } finally {
      AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
      blog.log(request, HttpServletResponse.SC_FORBIDDEN);
    }
  }

}
View Full Code Here

      out.close();
    } catch (IOException ioe) {
      log.warn(ioe);
    } finally {
      AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
      blog.log(request, HttpServletResponse.SC_OK);
    }
  }

}
View Full Code Here

      response.sendError(HttpServletResponse.SC_NOT_FOUND);
    } catch (IOException ioe) {
      throw new ServletException(ioe);
    } finally {
      AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
      blog.log(request, HttpServletResponse.SC_NOT_FOUND);
    }
  }
}
View Full Code Here

      dispatcher.include(request, response);
    } catch (IOException ioe) {
      throw new ServletException(ioe);
    } finally {
      AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
      blog.log(request, HttpServletResponse.SC_OK);
    }
  }

}
View Full Code Here

   */
  public void dispatch(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws ServletException {
    response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);

    AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
    blog.log(request, HttpServletResponse.SC_NOT_MODIFIED);
  }

}
View Full Code Here

      dispatcher.include(request, response);
    } catch (IOException ioe) {
      throw new ServletException(ioe);
    } finally {
      AbstractBlog blog = (AbstractBlog)getModel().get(Constants.BLOG_KEY);
      blog.log(request, HttpServletResponse.SC_OK);
    }
  }

}
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.