public class WebPageRenderer extends PageRenderer
PageRenderer
for web applications.Constructor and Description |
---|
WebPageRenderer(RenderPageRequestHandler renderPageRequestHandler)
Construct.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
compatibleProtocols(String p1,
String p2)
Compares the protocols of two
Url s |
protected boolean |
isAjax(RequestCycle requestCycle) |
protected boolean |
isNewPageInstance() |
protected boolean |
isPageStateless() |
protected void |
redirectTo(Url url,
RequestCycle requestCycle) |
protected BufferedWebResponse |
renderPage(Url targetUrl,
RequestCycle requestCycle)
Renders page to a
BufferedWebResponse . |
void |
respond(RequestCycle requestCycle)
Render the response using give
RequestCycle . |
protected boolean |
shouldPreserveClientUrl(RequestCycle requestCycle) |
protected boolean |
shouldRedirectToTargetUrl(RequestCycle cycle,
Url currentUrl,
Url targetUrl)
Should the client be redirected to target url.
|
protected boolean |
shouldRenderPageAndWriteResponse(RequestCycle cycle,
Url currentUrl,
Url targetUrl)
Should the page be rendered immediately.
|
protected void |
storeBufferedResponse(Url url,
BufferedWebResponse response)
Store the buffered response at application level.
|
enableRedirectForStatelessPage, getPage, getPageProvider, getRedirectPolicy, getRenderPageRequestHandler, getSessionId, isOnePassRender, isRedirectToBuffer, isRedirectToRender, isSessionTemporary
public WebPageRenderer(RenderPageRequestHandler renderPageRequestHandler)
renderPageRequestHandler
- protected boolean isAjax(RequestCycle requestCycle)
protected void storeBufferedResponse(Url url, BufferedWebResponse response)
url
- response
- protected BufferedWebResponse renderPage(Url targetUrl, RequestCycle requestCycle)
BufferedWebResponse
. All URLs in page will be rendered relative to
targetUrl
targetUrl
- requestCycle
- protected void redirectTo(Url url, RequestCycle requestCycle)
url
- requestCycle
- public void respond(RequestCycle requestCycle)
PageRenderer
RequestCycle
.respond
in class PageRenderer
protected boolean isPageStateless()
protected boolean isNewPageInstance()
protected boolean shouldPreserveClientUrl(RequestCycle requestCycle)
protected boolean shouldRedirectToTargetUrl(RequestCycle cycle, Url currentUrl, Url targetUrl)
protected boolean shouldRenderPageAndWriteResponse(RequestCycle cycle, Url currentUrl, Url targetUrl)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.