Class AjaxDownloadBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- org.apache.syncope.client.console.wicket.ajax.form.AjaxDownloadBehavior
-
- All Implemented Interfaces:
Serializable
,IComponentAwareEventSink
,IRequestListener
,IComponentAwareHeaderContributor
,IClusterable
public class AjaxDownloadBehavior extends AbstractAjaxBehavior
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logger
LOG
protected ResponseHolder
responseHolder
-
Constructor Summary
Constructors Constructor Description AjaxDownloadBehavior()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpResourceStream
getResourceStream()
void
initiate(AjaxRequestTarget target)
Call this method to initiate the download.void
onRequest()
void
setResponse(ResponseHolder response)
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.IRequestListener
rendersPage
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
responseHolder
protected ResponseHolder responseHolder
-
-
Method Detail
-
setResponse
public void setResponse(ResponseHolder response)
-
initiate
public void initiate(AjaxRequestTarget target)
Call this method to initiate the download.- Parameters:
target
- request target.
-
getResourceStream
protected HttpResourceStream getResourceStream()
-
onRequest
public void onRequest()
-
-