/** * @see org.apache.wicket.markup.html.WebPage#configureResponse() */ @Override protected void configureResponse() { super.configureResponse(); if (getWebRequestCycle().getResponse() instanceof WebResponse) { getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus( HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } }
/** * @see org.apache.wicket.markup.html.WebPage#configureResponse() */ protected void configureResponse() { super.configureResponse(); if (getWebRequestCycle().getResponse() instanceof WebResponse) { getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus( HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } }
/** * @see org.apache.wicket.Page#configureResponse() */ protected void configureResponse() { super.configureResponse(); if (getWebRequestCycle().getResponse() instanceof WebResponse) { final WebResponse response = getWebRequestCycle().getWebResponse(); setHeaders(response); } }
/** * @see org.apache.wicket.Page#configureResponse() */ @Override protected void configureResponse() { super.configureResponse(); if (getWebRequestCycle().getResponse() instanceof WebResponse) { final WebResponse response = getWebRequestCycle().getWebResponse(); setHeaders(response); } }
/** * 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); }
cycle.getResponse().close();
/** * 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); }
/** * 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); }
if (cycle.getResponse() instanceof WebResponse)
if (cycle.getResponse() instanceof WebResponse)