public class XmlPartialPageUpdate extends PartialPageUpdate
PartialPageUpdate
that serializes itself to XML.PartialPageUpdate.ResponseBuffer
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, bodyBuffer, componentsFrozen, domReadyJavaScripts, header, headerBuffer, markupIdToComponent, prependJavaScripts
Constructor and Description |
---|
XmlPartialPageUpdate(Page page) |
Modifier and Type | Method and Description |
---|---|
protected CharSequence |
encode(CharSequence str) |
void |
setContentType(WebResponse response,
String encoding)
Sets the Content-Type header to indicate the type of the 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 (<link/> or <script/>) to the response.
|
protected void |
writeNormalEvaluations(Response response,
Collection<CharSequence> scripts) |
protected void |
writePriorityEvaluations(Response response,
Collection<CharSequence> scripts) |
add, appendJavaScript, containsAncestorFor, containsPage, detach, equals, getComponents, getHeaderResponse, hashCode, onAfterRespond, onBeforeRespond, prepareComponent, prependJavaScript, writeHeaderContribution, writeTo
public static final String START_ROOT_ELEMENT
public static final String END_ROOT_ELEMENT
public XmlPartialPageUpdate(Page page)
public void setContentType(WebResponse response, String encoding)
PartialPageUpdate
setContentType
in class PartialPageUpdate
response
- the current we responseencoding
- the encoding to useprotected void writeHeader(Response response, String encoding)
PartialPageUpdate
writeHeader
in class PartialPageUpdate
response
- the response to write toencoding
- the encoding for the responseprotected void writeComponent(Response response, String markupId, Component component, String encoding)
PartialPageUpdate
writeComponent
in class PartialPageUpdate
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 responseprotected void writeFooter(Response response, String encoding)
writeFooter
in class PartialPageUpdate
response
- the response to write toencoding
- the encoding for the responseprotected void writeHeaderContribution(Response response)
PartialPageUpdate
writeHeaderContribution
in class PartialPageUpdate
response
- the response to write toprotected void writeNormalEvaluations(Response response, Collection<CharSequence> scripts)
writeNormalEvaluations
in class PartialPageUpdate
response
- the response to write toscripts
- the JavaScript to evaluateprotected void writePriorityEvaluations(Response response, Collection<CharSequence> scripts)
writePriorityEvaluations
in class PartialPageUpdate
response
- the response to write toscripts
- the JavaScript to evaluateprotected CharSequence encode(CharSequence str)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.