/** * Create and process the request cycle using the current request and response information. */ public void processRequestCycle() { processRequestCycle(createRequestCycle()); }
/** * Create and process the request cycle using the current request and response information. */ public void processRequestCycle() { processRequestCycle(createRequestCycle()); }
/** * Initialize a new WebRequestCycle and all its dependent objects * * @param component */ public void processRequestCycle(final Component component) { setupRequestAndResponse(); final WebRequestCycle cycle = createRequestCycle(); cycle.request(component); if (component instanceof Page) { lastRenderedPage = (Page)component; } postProcessRequestCycle(cycle); }
/** * Initialize a new WebRequestCycle and all its dependent objects * * @param component */ public void processRequestCycle(final Component component) { setupRequestAndResponse(); final WebRequestCycle cycle = createRequestCycle(); cycle.request(component); if (component instanceof Page) { lastRenderedPage = (Page)component; } postProcessRequestCycle(cycle); }
/** * Create and process the request cycle using the current request and response information. * * @param cycle */ public void processRequestCycle(WebRequestCycle cycle) { try { cycle.request(); if (cycle.wasHandled() == false) { cycle.setRequestTarget(new WebErrorCodeResponseTarget( HttpServletResponse.SC_NOT_FOUND)); } createRequestCycle(); parametersForNextRequest.clear(); servletRequest.getParameterMap().clear(); } finally { cycle.getResponse().close(); } postProcessRequestCycle(cycle); }
/** * Initialize a new WebRequestCycle and all its dependent objects * * @param pageClass * @param params */ public void processRequestCycle(final Class pageClass, PageParameters params) { setupRequestAndResponse(); final WebRequestCycle cycle = createRequestCycle(); try { BaseWicketTester.callOnBeginRequest(cycle); cycle.request(new BookmarkablePageRequestTarget(pageClass, params)); } finally { cycle.getResponse().close(); } postProcessRequestCycle(cycle); }
/** * Reset the request and the response back to a starting state and recreate the necessary wicket * request, response and session objects. The request and response objects can be accessed and * Initialized at this point. * * @param isAjax * indicates whether the request should be initialized as an ajax request (ajax * header "Wicket-Ajax" is set) */ public WebRequestCycle setupRequestAndResponse(boolean isAjax) { servletRequest.initialize(); servletResponse.initialize(); servletRequest.setParameters(parametersForNextRequest); if (isAjax) { servletRequest.addHeader("Wicket-Ajax", "Yes"); } parametersForNextRequest.clear(); wicketRequest = application.newWebRequest(servletRequest); wicketResponse = application.newWebResponse(servletResponse); WebRequestCycle requestCycle = createRequestCycle(); if (!initializeHttpSessionAsTemporary()) application.getSessionStore().bind(wicketRequest, wicketSession); wicketResponse.setAjax(wicketRequest.isAjax()); return requestCycle; }
/** * Create and process the request cycle using the current request and response information. * * @param cycle */ public void processRequestCycle(WebRequestCycle cycle) { try { cycle.request(); if (cycle.wasHandled() == false) { cycle.setRequestTarget(new WebErrorCodeResponseTarget( HttpServletResponse.SC_NOT_FOUND)); } cycle.detach(); createRequestCycle(); } finally { cycle.getResponse().close(); } postProcessRequestCycle(cycle); }
wicketRequest = application.newWebRequest(servletRequest); wicketResponse = application.newWebResponse(servletResponse); WebRequestCycle requestCycle = createRequestCycle(); if (!initializeHttpSessionAsTemporary())
createRequestCycle(); IBookmarkablePageRequestTarget pageClassRequestTarget = (IBookmarkablePageRequestTarget)target; Class pageClass = pageClassRequestTarget.getPageClass();
wicketRequest = application.newWebRequest(newHttpRequest); cycle = createRequestCycle(); cycle.request();
createRequestCycle(); IBookmarkablePageRequestTarget pageClassRequestTarget = (IBookmarkablePageRequestTarget)target; Class<? extends Page> pageClass = pageClassRequestTarget.getPageClass();
wicketRequest = application.newWebRequest(newHttpRequest); cycle = createRequestCycle(); cycle.request();