public class NonCachingImage extends Image
Image
that always adds random noise to the url every request to prevent the
browser from caching the image.Image.shouldAddAntiCacheParameter()
,
Serialized FormImage.Cors
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING
Constructor and Description |
---|
NonCachingImage(String id)
Construct.
|
NonCachingImage(String id,
IModel<?> model)
Construct.
|
NonCachingImage(String id,
IResource imageResource)
Construct.
|
NonCachingImage(String id,
ResourceReference resourceReference)
Construct.
|
NonCachingImage(String id,
ResourceReference resourceReference,
org.apache.wicket.request.mapper.parameter.PageParameters resourceParameters)
Construct.
|
NonCachingImage(String id,
String string)
Construct.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
shouldAddAntiCacheParameter()
Overriden to precent caching.
|
addAntiCacheParameter, buildSizesAttribute, buildSrcAttribute, buildSrcSetAttribute, canCallListener, getCrossOrigin, getImageResource, getImageResourceReference, getStatelessHint, initModel, onComponentTag, onComponentTagBody, onRequest, removeSizes, removeXValues, rendersPage, setCrossOrigin, setDefaultModel, setImageResource, setImageResourceReference, setImageResourceReference, setImageResourceReferences, setImageResources, setSizes, setXValues
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession, onRender
add, addStateChange, beforeRender, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, get, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, internalInitialize, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, toString, toString, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
public NonCachingImage(String id, IModel<?> model)
id
- model
- Image.Image(String, IModel)
public NonCachingImage(String id, IResource imageResource)
id
- imageResource
- Image#Image(String, org.apache.wicket.request.resource.IResource)
public NonCachingImage(String id, ResourceReference resourceReference, org.apache.wicket.request.mapper.parameter.PageParameters resourceParameters)
id
- resourceReference
- resourceParameters
- Image#Image(String, org.apache.wicket.request.resource.ResourceReference,
org.apache.wicket.request.mapper.parameter.PageParameters)
public NonCachingImage(String id, ResourceReference resourceReference)
id
- resourceReference
- Image#Image(String, ResourceReference)
public NonCachingImage(String id, String string)
id
- string
- Image.Image(String, String)
public NonCachingImage(String id)
id
- Image.Image(String)
protected boolean shouldAddAntiCacheParameter()
shouldAddAntiCacheParameter
in class Image
true
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.