|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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<String> challengeId)
Construct. |
|
CaptchaImageResource(IModel<String> challengeId,
int fontSize,
int margin)
Construct. |
|
CaptchaImageResource(String challengeId)
Construct. |
|
CaptchaImageResource(String challengeId,
int fontSize,
int margin)
Construct. |
|
| Method Summary | |
|---|---|
String |
getChallengeId()
Gets the id for the challenge. |
IModel<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, flushResponseAfterHeaders, 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(String challengeId)
challengeId - The id of the challengepublic CaptchaImageResource(IModel<String> challengeId)
challengeId - The id of the challenge
public CaptchaImageResource(IModel<String> challengeId,
int fontSize,
int margin)
challengeId - The id of the challengefontSize - The font sizemargin - The image's margin
public CaptchaImageResource(String challengeId,
int fontSize,
int margin)
challengeId - The id of the challengefontSize - The font sizemargin - The image's margin| Method Detail |
|---|
public final String getChallengeId()
public final IModel<String> getChallengeIdModel()
public final void invalidate()
protected final byte[] getImageData(IResource.Attributes attributes)
DynamicImageResourceDynamicImageResource.setLastModifiedTime(Time) when it does so. This
ensures that image caching works correctly.
getImageData in class DynamicImageResourceattributes - 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 | |||||||||