|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.resource.AbstractResource org.apache.wicket.request.resource.DynamicImageResource org.apache.wicket.extensions.markup.html.captcha.CaptchaImageResource
public final class CaptchaImageResource
Generates a captcha image.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.AbstractResource |
---|
AbstractResource.ResourceResponse, AbstractResource.WriteCallback |
Nested classes/interfaces inherited from interface org.apache.wicket.request.resource.IResource |
---|
IResource.Attributes |
Field Summary |
---|
Fields inherited from class org.apache.wicket.request.resource.AbstractResource |
---|
INTERNAL_HEADERS |
Constructor Summary | |
---|---|
CaptchaImageResource()
Construct. |
|
CaptchaImageResource(IModel<java.lang.String> challengeId)
Construct. |
|
CaptchaImageResource(IModel<java.lang.String> challengeId,
int fontSize,
int margin)
Construct. |
|
CaptchaImageResource(java.lang.String challengeId)
Construct. |
|
CaptchaImageResource(java.lang.String challengeId,
int fontSize,
int margin)
Construct. |
Method Summary | |
---|---|
java.lang.String |
getChallengeId()
Gets the id for the challenge. |
IModel<java.lang.String> |
getChallengeIdModel()
Gets the id for the challenge |
protected byte[] |
getImageData(IResource.Attributes attributes)
Get image data for our dynamic image resource. |
void |
invalidate()
Causes the image to be redrawn the next time its requested. |
Methods inherited from class org.apache.wicket.request.resource.DynamicImageResource |
---|
configureResponse, getFormat, newResourceResponse, setFormat, setLastModifiedTime, toImageData |
Methods inherited from class org.apache.wicket.request.resource.AbstractResource |
---|
configureCache, getCachingStrategy, respond, setResponseHeaders |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CaptchaImageResource()
public CaptchaImageResource(java.lang.String challengeId)
challengeId
- The id of the challengepublic CaptchaImageResource(IModel<java.lang.String> challengeId)
challengeId
- The id of the challengepublic CaptchaImageResource(IModel<java.lang.String> challengeId, int fontSize, int margin)
challengeId
- The id of the challengefontSize
- The font sizemargin
- The image's marginpublic CaptchaImageResource(java.lang.String challengeId, int fontSize, int margin)
challengeId
- The id of the challengefontSize
- The font sizemargin
- The image's marginMethod Detail |
---|
public final java.lang.String getChallengeId()
public final IModel<java.lang.String> getChallengeIdModel()
public final void invalidate()
protected final byte[] getImageData(IResource.Attributes attributes)
DynamicImageResource
DynamicImageResource.setLastModifiedTime(Time)
when it does so. This
ensures that image caching works correctly.
getImageData
in class DynamicImageResource
attributes
- the context bringing the request, response and the parameters
null
means there is no image and 404
(Not found) response will be return.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |