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
APartialPageUpdate
that 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.String
END_ROOT_ELEMENT
static java.lang.String
START_ROOT_ELEMENT
The 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.CharSequence
encode(java.lang.CharSequence str)
void
setContentType(org.apache.wicket.request.http.WebResponse response, java.lang.String encoding)
Sets the Content-Type header to indicate the type of the response.protected void
writeComponent(org.apache.wicket.request.Response response, java.lang.String markupId, Component component, java.lang.String encoding)
Writes a single componentprotected void
writeFooter(org.apache.wicket.request.Response response, java.lang.String encoding)
protected void
writeHeader(org.apache.wicket.request.Response response, java.lang.String encoding)
Writes the head part of the response.protected void
writeHeaderContribution(org.apache.wicket.request.Response response)
Writes header contribution (<link/> or <script/>) to the response.protected void
writeNormalEvaluations(org.apache.wicket.request.Response response, java.util.Collection<java.lang.CharSequence> scripts)
protected void
writePriorityEvaluations(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:PartialPageUpdate
Sets the Content-Type header to indicate the type of the response.- Specified by:
setContentType
in 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:PartialPageUpdate
Writes the head part of the response. For example XML preamble- Specified by:
writeHeader
in 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:PartialPageUpdate
Writes a single component- Specified by:
writeComponent
in 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:
writeFooter
in 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:PartialPageUpdate
Writes header contribution (<link/> or <script/>) to the response.- Specified by:
writeHeaderContribution
in 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:
writeNormalEvaluations
in 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:
writePriorityEvaluations
in classPartialPageUpdate
- Parameters:
response
- the response to write toscripts
- the JavaScript to evaluate
-
encode
protected java.lang.CharSequence encode(java.lang.CharSequence str)
-
-