public class AjaxDownloadBehavior extends AbstractAjaxBehavior
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
protected ResponseHolder |
responseHolder |
Constructor and Description |
---|
AjaxDownloadBehavior() |
Modifier and Type | Method and Description |
---|---|
protected HttpResourceStream |
getResourceStream() |
void |
initiate(AjaxRequestTarget target)
Call this method to initiate the download.
|
void |
onRequest() |
void |
setResponse(ResponseHolder response) |
afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHead
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
rendersPage
protected static final org.slf4j.Logger LOG
protected ResponseHolder responseHolder
public void setResponse(ResponseHolder response)
public void initiate(AjaxRequestTarget target)
target
- request target.protected HttpResourceStream getResourceStream()
public void onRequest()
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.