View Javadoc

1   /*
2    * JCaptcha, the open source java framework for captcha definition and integration
3    * Copyright (c)  2007 jcaptcha.net. All Rights Reserved.
4    * See the LICENSE.txt file distributed with this package.
5    */
6   
7   package com.octo.captcha.service.captchastore;
8   
9   import com.octo.captcha.Captcha;
10  
11  import java.util.Locale;
12  import java.io.Serializable;
13  
14  /***
15   * Composite object used as a container to store a captcha and the locale used to generate it.
16   *
17   * @author <a href="mailto:marc.antoine.garrigue@gmail.com">Marc-Antoine Garrigue</a>
18   * @version $Id: CaptchaAndLocale.java 322 2007-03-26 17:45:25Z antoineveret $
19   */
20  public class CaptchaAndLocale implements Serializable {
21      private Captcha captcha;
22      private Locale locale;
23  
24      public CaptchaAndLocale(Captcha captcha) {
25          this.captcha = captcha;
26      }
27  
28      public CaptchaAndLocale(Captcha captcha, Locale locale) {
29          this.captcha = captcha;
30          this.locale = locale;
31      }
32  
33      public Captcha getCaptcha() {
34          return captcha;
35      }
36  
37      public void setCaptcha(Captcha captcha) {
38          this.captcha = captcha;
39      }
40  
41      public Locale getLocale() {
42          return locale;
43      }
44  
45      public void setLocale(Locale locale) {
46          this.locale = locale;
47      }
48  }