API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.captcha. JOTSendCaptchaView View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
 Object
      JOTView
          JOTSendCaptchaView
Implements
Subclasses
Description
public class JOTSendCaptchaView
  Note, that it defaults to allow a maximum of 30 captcha per IP per 10 mn, after that it disallows for 1 hour.
See also:   
Constructors
public JOTSendCaptchaView ()
Methods
Hide/Show inherited methods
protected void addBlock (String id, JOTViewBlock element) [Inherited From JOTView]
  Defines a page block to be "defined" on the fly at runtime For example blah will be replaced by the data provided in the view element with dataId "toto" if it exists.
protected void addForm (JOTForm form) [Inherited From JOTView]
  Adds a Form to this View.
protected void addTag (String id, JOTViewBlock element) [Inherited From JOTView]
  Defines an HTML tag to be "redefined" on the fly at runtime For example
, content will be replaced by the data provided in the view element with dataId "toto" if it exists.
public void addVariable (String id, Object value) [Inherited From JOTView]
  Adds a variable to this View Then you can use the varibale in the view: Ex: jot:var value="id"
public Hashtable getBlocks () [Inherited From JOTView]
public String getBuiltinTemplate () [Inherited From JOTView]
protected JOTDataHolder getDataHolder () [Inherited From JOTView]
public JOTForm getForm (Class formClass) [Inherited From JOTView]
  Use this method to get/create a form object Will provide either : - a new form object if this form is newly used - the existing form if used earlier in this request (ie: validation failed) This allows you to get the form and put it in the View(using addForm), or to populate/validate it in your controller.
public Hashtable getForms () [Inherited From JOTView]
public JOTView getFullView () [Inherited From JOTView]
publicstatic JOTCaptchaGeneratorInterface getGenerator ()
public JOTMasterController getMaster () [Inherited From JOTView]
public Hashtable getTags () [Inherited From JOTView]
public Hashtable getVariables () [Inherited From JOTView]
public void init (JOTMasterController master) [Inherited From JOTView]
  Will be called by the mastercontroller.
public boolean isProvideRequestParameters () [Inherited From JOTView]
public void prepareViewData () throws Exception [Specified in JOTView]
publicfinal String process () throws Exception [Inherited From JOTView]
  called by mastercontroller
publicstatic void setBlockIPForMn (int blockIPForMn)
public void setBuiltinTemplate (String template) [Inherited From JOTView]
  You can call this method to use a "hardcode" template rather tha use one loaded from a template as usual.
publicstatic void setEnableSecurity (boolean enableSecurity)
  call when initializing your app if you want to enable security
publicstatic void setGenerator (JOTCaptchaGeneratorInterface gen)
  call during your app initialization if you want to use a cutom generator rather than the default one
publicstatic void setImageWriter (JOTAbstractImageWriterInterface writer)
  call during your app initialization if you want to use a cutom imageWriter rather than the default one
publicstatic void setMaxRequestPerIPPer10Mn (int maxRequestPerIPPer10Mn)
protected void setProvideRequestParameters (boolean b) [Inherited From JOTView]
  Wether to automatically provide all the request parameters & attributes to the view TODO: is that implemented ? Defaults to false.
public boolean validatePermissions () [Specified in JOTView]
Fields
Hide/Show inherited fields
pack-private Vector blockedIps
pack-private long blockedTime
publicstatic int blockIPForMn
publicfinalstatic String CAPTCHA_SESSION_ID = "_JOT_CAPTCHA_ID"
publicstatic JOTRequestCounter counter
publicstatic boolean enableSecurity
public FilterChain filterChain [Inherited From JOTView]
Gives you easy acess to filterChain should you need it
public FilterConfig filterConfig [Inherited From JOTView]
Gives you easy acess to filterConfig should you need it
publicstatic JOTCaptchaGeneratorInterface gen
publicstatic int maxRequestPerIPPer10Mn
public JOTFlowRequest request [Inherited From JOTView]
Gives you easy access to the request
public HttpServletResponse response [Inherited From JOTView]
Gives you easy access to the Response
public HttpSession session [Inherited From JOTView]
Gives you easy acess to the "Session" object
publicstatic JOTAbstractImageWriterInterface writer
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar