Class XmlPartialPageUpdate

    • 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 class PartialPageUpdate
        Parameters:
        response - the current we response
        encoding - 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 class PartialPageUpdate
        Parameters:
        response - the response to write to
        encoding - 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 class PartialPageUpdate
        Parameters:
        response - the response to write to
        markupId - the markup id to use for the component replacement
        component - the component which markup will be used as replacement
        encoding - the encoding for the response
      • writeFooter

        protected void writeFooter​(org.apache.wicket.request.Response response,
                                   java.lang.String encoding)
        Specified by:
        writeFooter in class PartialPageUpdate
        Parameters:
        response - the response to write to
        encoding - 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 class PartialPageUpdate
        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 class PartialPageUpdate
        Parameters:
        response - the response to write to
        scripts - 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 class PartialPageUpdate
        Parameters:
        response - the response to write to
        scripts - the JavaScript to evaluate
      • encode

        protected java.lang.CharSequence encode​(java.lang.CharSequence str)