| javax.servlet.http.HttpServlet org.apache.roller.ui.rendering.servlets.CommentServlet
CommentServlet | public class CommentServlet extends HttpServlet (Code) | | The CommentServlet handles all incoming weblog entry comment posts.
We validate each incoming comment based on various comment settings and
if all checks are passed then the comment is saved.
Incoming comments are tested against the MT Blacklist. If they are found
to be spam, then they are marked as spam and hidden from view.
If email notification is turned on, each new comment will result in an
email sent to the blog owner and all who have commented on the same post.
|
Method Summary | |
public void | doGet(HttpServletRequest request, HttpServletResponse response) Handle incoming http GET requests. | public void | doPost(HttpServletRequest request, HttpServletResponse response) Service incoming POST requests. | public void | init(ServletConfig servletConfig) Initialization. | public static void | sendEmailApprovalNotification(CommentData cd, String rootURL) Send message to author of approved comment
TODO: Make the addressing options configurable on a per-website basis. | public static void | sendEmailNotification(CommentData cd, String rootURL) Send email notification of comment. | static void | sendMessage(Session session, String from, String[] to, String[] cc, String[] bcc, String subject, String msg, boolean isHtml) |
sendEmailApprovalNotification | public static void sendEmailApprovalNotification(CommentData cd, String rootURL)(Code) | | Send message to author of approved comment
TODO: Make the addressing options configurable on a per-website basis.
|
sendEmailNotification | public static void sendEmailNotification(CommentData cd, String rootURL)(Code) | | Send email notification of comment.
TODO: Make the addressing options configurable on a per-website basis.
|
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|