Class WebPageRenderer

    • Constructor Detail

      • WebPageRenderer

        public WebPageRenderer​(RenderPageRequestHandler renderPageRequestHandler)
        Construct.
        Parameters:
        renderPageRequestHandler -
    • Method Detail

      • isAjax

        protected boolean isAjax​(RequestCycle requestCycle)
      • storeBufferedResponse

        protected void storeBufferedResponse​(org.apache.wicket.request.Url url,
                                             BufferedWebResponse response)
        Store the buffered response at application level. If current session is temporary, a permanent one is created.
        Parameters:
        url -
        response -
      • renderPage

        protected BufferedWebResponse renderPage​(org.apache.wicket.request.Url targetUrl,
                                                 RequestCycle requestCycle)
        Renders page to a BufferedWebResponse. All URLs in page will be rendered relative to targetUrl
        Parameters:
        targetUrl -
        requestCycle -
        Returns:
        BufferedWebResponse containing page body
      • redirectTo

        protected void redirectTo​(org.apache.wicket.request.Url url,
                                  RequestCycle requestCycle)
        Parameters:
        url -
        requestCycle -
      • isPageStateless

        protected boolean isPageStateless()
      • isNewPageInstance

        protected boolean isNewPageInstance()
      • shouldPreserveClientUrl

        protected boolean shouldPreserveClientUrl​(RequestCycle requestCycle)
      • shouldRedirectToTargetUrl

        protected boolean shouldRedirectToTargetUrl​(RequestCycle cycle,
                                                    org.apache.wicket.request.Url currentUrl,
                                                    org.apache.wicket.request.Url targetUrl)
        Should the client be redirected to target url.
      • shouldRenderPageAndWriteResponse

        protected boolean shouldRenderPageAndWriteResponse​(RequestCycle cycle,
                                                           org.apache.wicket.request.Url currentUrl,
                                                           org.apache.wicket.request.Url targetUrl)
        Should the page be rendered immediately.
      • compatibleProtocols

        protected boolean compatibleProtocols​(java.lang.String p1,
                                              java.lang.String p2)
        Compares the protocols of two Urls
        Parameters:
        p1 - the first protocol
        p2 - the second protocol
        Returns:
        false if the protocols are both non-null and not equal, true - otherwise