net.java.dev.moskitodemo.guestbook.presentation.action
Class CreateCommentAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by net.java.dev.moskito.web.MoskitoAction
          extended by net.java.dev.moskitodemo.guestbook.presentation.action.BaseGuestbookAction
              extended by net.java.dev.moskitodemo.guestbook.presentation.action.CreateCommentAction
All Implemented Interfaces:
IStatsProducer

public class CreateCommentAction
extends BaseGuestbookAction

Creates a new comment object from form.

Author:
dvayanu

Field Summary
private static String[] BLACKLIST
           
private static org.apache.log4j.Logger log
           
 
Fields inherited from class net.java.dev.moskitodemo.guestbook.presentation.action.BaseGuestbookAction
BEAN_AUTHORIZATION, PARAM_COMMENT_ID
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
CreateCommentAction()
           
 
Method Summary
private  boolean detectBot(CommentForm form)
           
private  boolean isBlacklisted(String s)
           
 ActionForward moskitoExecute(ActionMapping mapping, ActionForm af, HttpServletRequest req, HttpServletResponse res)
           
 
Methods inherited from class net.java.dev.moskitodemo.guestbook.presentation.action.BaseGuestbookAction
authorizeUser, getAuthorizationService, getCommentService, getProducerId, getSubsystem, isAuthorized, makeDateString, obfuscateEmail
 
Methods inherited from class net.java.dev.moskito.web.MoskitoAction
execute, getCategory, getMonitoringIntervals, getStats, postProcessExecute, preProcessExecute
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

BLACKLIST

private static String[] BLACKLIST
Constructor Detail

CreateCommentAction

public CreateCommentAction()
Method Detail

moskitoExecute

public ActionForward moskitoExecute(ActionMapping mapping,
                                    ActionForm af,
                                    HttpServletRequest req,
                                    HttpServletResponse res)
                             throws Exception
Specified by:
moskitoExecute in class MoskitoAction
Throws:
Exception

detectBot

private boolean detectBot(CommentForm form)

isBlacklisted

private boolean isBlacklisted(String s)


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework