|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CaptchaBuffer
CaptchaBuffer is the interface to describe buffers of captchas.
Method Summary | |
---|---|
void |
clear()
Clear the buffer from all locale |
void |
dispose()
Release all the ressources and close the buffer. |
java.util.Collection |
getLocales()
Get all the locales used |
void |
putAllCaptcha(java.util.Collection captchas)
Put a collection of captchas with the default locale |
void |
putAllCaptcha(java.util.Collection captchas,
java.util.Locale locale)
Put a collection of captchas with his locale |
void |
putCaptcha(Captcha captcha)
Put a captcha with default laocale |
void |
putCaptcha(Captcha captcha,
java.util.Locale locale)
Put a captcha with a locale |
Captcha |
removeCaptcha()
remove a captcha from the buffer |
java.util.Collection |
removeCaptcha(int number)
Remove a precise number of captcha |
java.util.Collection |
removeCaptcha(int number,
java.util.Locale locale)
Remove a precise number of captcha with a locale |
Captcha |
removeCaptcha(java.util.Locale locale)
remove a captcha from the buffer corresponding to the locale |
int |
size()
Get the size of the buffer for all locales |
int |
size(java.util.Locale locale)
Get the size of the buffer for a locale |
Method Detail |
---|
Captcha removeCaptcha() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if there is no captcha throw NoSuchElementExceptionCaptcha removeCaptcha(java.util.Locale locale) throws java.util.NoSuchElementException
locale
- The locale the catcha to remove
java.util.NoSuchElementException
- if there is no captcha throw NoSuchElementExceptionjava.util.Collection removeCaptcha(int number)
number
- The number of captchas to remove
java.util.Collection removeCaptcha(int number, java.util.Locale locale)
number
- The number of captchas to removelocale
- The locale of the removed captchas
void putCaptcha(Captcha captcha)
void putCaptcha(Captcha captcha, java.util.Locale locale)
captcha
- The captcha to addlocale
- the locale of the captchavoid putAllCaptcha(java.util.Collection captchas)
captchas
- The captchas to addvoid putAllCaptcha(java.util.Collection captchas, java.util.Locale locale)
captchas
- The captchas to addlocale
- The locale of the captchasint size()
int size(java.util.Locale locale)
locale
- the locale to get the size
void dispose()
void clear()
java.util.Collection getLocales()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |