Package org.apache.wicket.page
Class XmlPartialPageUpdate
- java.lang.Object
-
- org.apache.wicket.page.PartialPageUpdate
-
- org.apache.wicket.page.XmlPartialPageUpdate
-
public class XmlPartialPageUpdate extends PartialPageUpdate
APartialPageUpdatethat serializes itself to XML.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wicket.page.PartialPageUpdate
PartialPageUpdate.ResponseBuffer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEND_ROOT_ELEMENTstatic java.lang.StringSTART_ROOT_ELEMENTThe name of the root element in the produced XML document.-
Fields inherited from class org.apache.wicket.page.PartialPageUpdate
appendJavaScripts, bodyBuffer, componentsFrozen, domReadyJavaScripts, header, headerBuffer, markupIdToComponent, prependJavaScripts
-
-
Constructor Summary
Constructors Constructor Description XmlPartialPageUpdate(Page page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.CharSequenceencode(java.lang.CharSequence str)voidsetContentType(org.apache.wicket.request.http.WebResponse response, java.lang.String encoding)Sets the Content-Type header to indicate the type of the response.protected voidwriteComponent(org.apache.wicket.request.Response response, java.lang.String markupId, Component component, java.lang.String encoding)Writes a single componentprotected voidwriteFooter(org.apache.wicket.request.Response response, java.lang.String encoding)protected voidwriteHeader(org.apache.wicket.request.Response response, java.lang.String encoding)Writes the head part of the response.protected voidwriteHeaderContribution(org.apache.wicket.request.Response response)Writes header contribution (<link/> or <script/>) to the response.protected voidwriteNormalEvaluations(org.apache.wicket.request.Response response, java.util.Collection<java.lang.CharSequence> scripts)protected voidwritePriorityEvaluations(org.apache.wicket.request.Response response, java.util.Collection<java.lang.CharSequence> scripts)-
Methods inherited from class org.apache.wicket.page.PartialPageUpdate
add, appendJavaScript, containsAncestorFor, containsPage, detach, equals, getComponents, getHeaderResponse, hashCode, onAfterRespond, onBeforeRespond, prepareComponent, prependJavaScript, writeHeaderContribution, writeTo
-
-
-
-
Field Detail
-
START_ROOT_ELEMENT
public static final java.lang.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 java.lang.String END_ROOT_ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XmlPartialPageUpdate
public XmlPartialPageUpdate(Page page)
-
-
Method Detail
-
setContentType
public void setContentType(org.apache.wicket.request.http.WebResponse response, java.lang.String encoding)Description copied from class:PartialPageUpdateSets the Content-Type header to indicate the type of the response.- Specified by:
setContentTypein classPartialPageUpdate- Parameters:
response- the current we responseencoding- the encoding to use
-
writeHeader
protected void writeHeader(org.apache.wicket.request.Response response, java.lang.String encoding)Description copied from class:PartialPageUpdateWrites the head part of the response. For example XML preamble- Specified by:
writeHeaderin classPartialPageUpdate- Parameters:
response- the response to write toencoding- the encoding for the response
-
writeComponent
protected void writeComponent(org.apache.wicket.request.Response response, java.lang.String markupId, Component component, java.lang.String encoding)Description copied from class:PartialPageUpdateWrites a single component- Specified by:
writeComponentin classPartialPageUpdate- 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(org.apache.wicket.request.Response response, java.lang.String encoding)- Specified by:
writeFooterin classPartialPageUpdate- Parameters:
response- the response to write toencoding- the encoding for the response
-
writeHeaderContribution
protected void writeHeaderContribution(org.apache.wicket.request.Response response)
Description copied from class:PartialPageUpdateWrites header contribution (<link/> or <script/>) to the response.- Specified by:
writeHeaderContributionin classPartialPageUpdate- Parameters:
response- the response to write to
-
writeNormalEvaluations
protected void writeNormalEvaluations(org.apache.wicket.request.Response response, java.util.Collection<java.lang.CharSequence> scripts)- Specified by:
writeNormalEvaluationsin classPartialPageUpdate- Parameters:
response- the response to write toscripts- the JavaScript to evaluate
-
writePriorityEvaluations
protected void writePriorityEvaluations(org.apache.wicket.request.Response response, java.util.Collection<java.lang.CharSequence> scripts)- Specified by:
writePriorityEvaluationsin classPartialPageUpdate- Parameters:
response- the response to write toscripts- the JavaScript to evaluate
-
encode
protected java.lang.CharSequence encode(java.lang.CharSequence str)
-
-