public abstract class XmlAjaxResponse extends AbstractAjaxResponse
The elements of such response are:
AbstractAjaxResponse.AjaxResponse| Modifier and Type | Field and Description |
|---|---|
static String |
END_ROOT_ELEMENT |
static String |
START_ROOT_ELEMENT
The name of the root element in the produced XML document.
|
appendJavaScripts, componentsFrozen, domReadyJavaScripts, encodingBodyResponse, encodingHeaderResponse, header, markupIdToComponent, prependJavaScripts| Constructor and Description |
|---|
XmlAjaxResponse(Page page) |
| Modifier and Type | Method and Description |
|---|---|
void |
setContentType(WebResponse response,
String encoding)
Sets the Content-Type header to indicate the type of the Ajax response.
|
protected void |
writeComponent(Response response,
String markupId,
Component component,
String encoding)
Writes a single component
|
protected void |
writeFooter(Response response,
String encoding) |
protected void |
writeHeader(Response response,
String encoding)
Writes the head part of the response.
|
protected void |
writeHeaderContribution(Response response)
Writes header contribution ( or ) to the response.
|
protected void |
writeNormalEvaluations(Response response,
Collection<CharSequence> scripts) |
protected void |
writePriorityEvaluations(Response response,
Collection<CharSequence> scripts) |
add, appendJavaScript, containsAncestorFor, detach, equals, fireOnAfterRespondListeners, fireOnBeforeRespondListeners, getComponents, getEncodingName, getHeaderResponse, hashCode, prependJavaScript, writeHeaderContribution, writeTopublic static final String START_ROOT_ELEMENT
public static final String END_ROOT_ELEMENT
public XmlAjaxResponse(Page page)
public void setContentType(WebResponse response, String encoding)
AbstractAjaxResponsesetContentType in class AbstractAjaxResponseresponse - the current we responseencoding - the encoding to useprotected void writeHeader(Response response, String encoding)
AbstractAjaxResponsewriteHeader in class AbstractAjaxResponseresponse - the response to write toencoding - the encoding for the responseprotected void writeComponent(Response response, String markupId, Component component, String encoding)
AbstractAjaxResponsewriteComponent in class AbstractAjaxResponseresponse - 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 responseprotected void writeFooter(Response response, String encoding)
writeFooter in class AbstractAjaxResponseresponse - the response to write toencoding - the encoding for the responseprotected void writeHeaderContribution(Response response)
AbstractAjaxResponsewriteHeaderContribution in class AbstractAjaxResponseresponse - the response to write toprotected void writeNormalEvaluations(Response response, Collection<CharSequence> scripts)
writeNormalEvaluations in class AbstractAjaxResponseresponse - the response to write toscripts - the JavaScript to evaluateprotected void writePriorityEvaluations(Response response, Collection<CharSequence> scripts)
writePriorityEvaluations in class AbstractAjaxResponseresponse - the response to write toscripts - the JavaScript to evaluateCopyright © 2006–2014 Apache Software Foundation. All rights reserved.