org.apache.wicket.ajax
Class XmlAjaxResponse
java.lang.Object
org.apache.wicket.ajax.AbstractAjaxResponse
org.apache.wicket.ajax.XmlAjaxResponse
public abstract class XmlAjaxResponse
- extends AbstractAjaxResponse
An AbstractAjaxResponse that serializes itself to XML.
The elements of such response are:
- priority-evaluate - an item of the prepend JavaScripts
- component - the markup of the updated component
- evaluate - an item of the onDomReady and append JavaScripts
- header-contribution - all HeaderItems which have been contributed in components'
and their behaviors' #renderHead(Component, IHeaderResponse)
Methods inherited from class org.apache.wicket.ajax.AbstractAjaxResponse |
add, appendJavaScript, containsAncestorFor, detach, equals, fireOnAfterRespondListeners, fireOnBeforeRespondListeners, getComponents, getEncodingName, getHeaderResponse, hashCode, prependJavaScript, writeHeaderContribution, writeTo |
START_ROOT_ELEMENT
public static final String START_ROOT_ELEMENT
- The name of the root element in the produced XML document.
- See Also:
- Constant Field Values
END_ROOT_ELEMENT
public static final String END_ROOT_ELEMENT
- See Also:
- Constant Field Values
XmlAjaxResponse
public XmlAjaxResponse(Page page)
setContentType
public void setContentType(WebResponse response,
String encoding)
- Description copied from class:
AbstractAjaxResponse
- Sets the Content-Type header to indicate the type of the Ajax response.
- Specified by:
setContentType
in class AbstractAjaxResponse
- Parameters:
response
- the current we responseencoding
- the encoding to use
writeHeader
protected void writeHeader(Response response,
String encoding)
- Description copied from class:
AbstractAjaxResponse
- Writes the head part of the response.
For example XML preamble
- Specified by:
writeHeader
in class AbstractAjaxResponse
- Parameters:
response
- the response to write toencoding
- the encoding for the response
writeComponent
protected void writeComponent(Response response,
String markupId,
Component component,
String encoding)
- Description copied from class:
AbstractAjaxResponse
- Writes a single component
- Specified by:
writeComponent
in class AbstractAjaxResponse
- Parameters:
response
- the response to write tomarkupId
- the markup id to use for the component replacementcomponent
- the component which markup will be used as replacementencoding
- the encoding for the response
writeFooter
protected void writeFooter(Response response,
String encoding)
- Specified by:
writeFooter
in class AbstractAjaxResponse
- Parameters:
response
- the response to write toencoding
- the encoding for the response
writeHeaderContribution
protected void writeHeaderContribution(Response response)
- Description copied from class:
AbstractAjaxResponse
- Writes header contribution ( or ) to the response.
- Specified by:
writeHeaderContribution
in class AbstractAjaxResponse
- Parameters:
response
- the response to write to
writeNormalEvaluations
protected void writeNormalEvaluations(Response response,
Collection<CharSequence> scripts)
- Specified by:
writeNormalEvaluations
in class AbstractAjaxResponse
- Parameters:
response
- the response to write toscripts
- the JavaScript to evaluate
writePriorityEvaluations
protected void writePriorityEvaluations(Response response,
Collection<CharSequence> scripts)
- Specified by:
writePriorityEvaluations
in class AbstractAjaxResponse
- Parameters:
response
- the response to write toscripts
- the JavaScript to evaluate
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.