Class AjaxDownloadBehaviorFromFile
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
com.evolveum.midpoint.web.component.AjaxDownloadBehaviorFromFile
- All Implemented Interfaces:
- Serializable,- org.apache.wicket.IComponentAwareEventSink,- org.apache.wicket.IRequestListener,- org.apache.wicket.markup.html.IComponentAwareHeaderContributor,- org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
- PageDebugDownloadBehaviour
public abstract class AjaxDownloadBehaviorFromFile
extends org.apache.wicket.behavior.AbstractAjaxBehavior
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract org.apache.wicket.util.file.FileinitFile()voidinitiate(org.apache.wicket.ajax.AjaxRequestTarget target) Call this method to initiate the download.voidvoidsetContentType(String contentType) voidsetRemoveFile(boolean removeFile) Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehaviorafterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindMethods inherited from class org.apache.wicket.behavior.BehaviorbeforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHeadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.wicket.IRequestListenerrendersPage
- 
Constructor Details- 
AjaxDownloadBehaviorFromFilepublic AjaxDownloadBehaviorFromFile()
- 
AjaxDownloadBehaviorFromFilepublic AjaxDownloadBehaviorFromFile(boolean addAntiCache) 
 
- 
- 
Method Details- 
initiatepublic void initiate(org.apache.wicket.ajax.AjaxRequestTarget target) Call this method to initiate the download.
- 
onRequestpublic void onRequest()
- 
setContentType
- 
setRemoveFilepublic void setRemoveFile(boolean removeFile) 
- 
initFileprotected abstract org.apache.wicket.util.file.File initFile()
 
-