Yan 0.3

经过一周的重构和开发,我的开源项目,验证码服务,打上了0.3的tag,算是一个release吧。

This release has been focusing on support for different types captcha generators. Now Yan is not only able to provide image/jpeg captcha, but also text/plain and any others.

Changeset:

  • Internal API Changes:
    • Cache API improved: new CacheItemIdentity and CacheIdStrategy were introduced in to provide convertion between cache item name and captcha info model;
    • Captcha Generator API improved: Add CaptchaGeneratorInfo to define some meta information on captcha providers (such as mode code, captcha type);
    • Captcha Data Model(CaptchaInfo) and Ticket Data Model improved: configuration parameters are separated from required parameters and has been more generic for different types of generator algorisms;
  • External API Changes:
    • Rename /image url to /captcha for better literal accuracy;
    • /ticket now supports multiple types of applicable format (plain text / json / xml / yaml);
    • /ticket now returns the mime type of the captcha generator;
    • Add a Simple-Plain-Text generator as a sample for those whose mime type is other than image/jpeg;
  • Other changes:
    • I created a new branch for next version of Yan. So the code in repository now has multiply branches, you can use ‘hg update branch-name’ to switch between difference branches;
    • The sample test page for the service (index.jsp) has been adopt to the new protocol and totally restyled.

Again, grab code from the development repository:
hg clone https://sunng@bitbucket.org/sunng/yan/

If you don’t use mercurial/hg, you can also download the tagged version from the page:
http://bitbucket.org/sunng/yan/downloads/

Just use maven to resolve dependency, build and run the project:
mvn jetty:run

Feel free to report issue :)

This entry was written by Sunng , posted on Sunday December 20 2009at 10:12 pm , filed under 广告 and tagged , , . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

6 Responses to “Yan 0.3”

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word