Class AjaxDownloadBehaviorFromStream
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- com.evolveum.midpoint.web.component.AbstractAjaxDownloadBehavior
-
- com.evolveum.midpoint.web.component.AjaxDownloadBehaviorFromStream
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.IRequestListener
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
public abstract class AjaxDownloadBehaviorFromStream extends AbstractAjaxDownloadBehavior
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AjaxDownloadBehaviorFromStream()
AjaxDownloadBehaviorFromStream(boolean addAntiCache)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getFileName()
org.apache.wicket.util.resource.IResourceStream
getResourceStream()
protected abstract InputStream
initStream()
void
setContentType(String contentType)
void
setFileName(String fileName)
-
Methods inherited from class com.evolveum.midpoint.web.component.AbstractAjaxDownloadBehavior
initiate, onRequest
-
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
-
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHead
-
-
-
-
Method Detail
-
getResourceStream
public org.apache.wicket.util.resource.IResourceStream getResourceStream()
- Specified by:
getResourceStream
in classAbstractAjaxDownloadBehavior
-
initStream
protected abstract InputStream initStream()
-
getFileName
public String getFileName()
- Overrides:
getFileName
in classAbstractAjaxDownloadBehavior
-
setFileName
public void setFileName(String fileName)
- Overrides:
setFileName
in classAbstractAjaxDownloadBehavior
-
setContentType
public void setContentType(String contentType)
- Overrides:
setContentType
in classAbstractAjaxDownloadBehavior
-
-