/** * Invoked when a {@link RedirectException} is thrown during the processing of a request. * * @throws ApplicationRuntimeException * if an {@link IOException},{@link ServletException}is thrown by the redirect, * or if no {@link javax.servlet.RequestDispatcher} can be found for local resource. * @since 2.2 */ protected void handleRedirectException(IRequestCycle cycle, RedirectException redirectException) { String location = redirectException.getRedirectLocation(); if (LOG.isDebugEnabled()) LOG.debug("Redirecting to: " + location); _infrastructure.getRequest().forward(location); }
/** * Invoked when a {@link RedirectException} is thrown during the processing of a request. * * @throws ApplicationRuntimeException * if an {@link IOException},{@link ServletException}is thrown by the redirect, * or if no {@link javax.servlet.RequestDispatcher} can be found for local resource. * @since 2.2 */ protected void handleRedirectException(IRequestCycle cycle, RedirectException redirectException) { String location = redirectException.getRedirectLocation(); if (LOG.isDebugEnabled()) LOG.debug("Redirecting to: " + location); _infrastructure.getRequest().forward(location); }
/** @since 4.0 */ public String getAbsoluteURL(String partialURL) { String contextPath = _infrastructure.getRequest().getContextPath(); return _absoluteURLBuilder.constructURL(contextPath + partialURL); }
/** @since 4.0 */ public String getAbsoluteURL(String partialURL) { String contextPath = _infrastructure.getRequest().getContextPath(); return _absoluteURLBuilder.constructURL(contextPath + partialURL); }
public IRequestCycle newRequestCycle(IEngine engine) { WebRequest request = _infrastructure.getRequest(); QueryParameterMap parameters = extractParameters(request); decodeParameters(request.getActivationPath(), request.getPathInfo(), parameters); String serviceName = findService(parameters); IRequestCycle cycle = new RequestCycle(engine, parameters, serviceName, _environment); _requestGlobals.store(cycle); try { _requestGlobals.store(_responseDelegateFactory.getResponseBuilder(cycle)); cycle.setResponseBuilder(_requestGlobals.getResponseBuilder()); } catch (IOException e) { throw new ApplicationRuntimeException("Error creating response builder.", e); } return cycle; }
public IRequestCycle newRequestCycle(IEngine engine) { WebRequest request = _infrastructure.getRequest(); QueryParameterMap parameters = extractParameters(request); decodeParameters(request.getActivationPath(), request.getPathInfo(), parameters); String serviceName = findService(parameters); IRequestCycle cycle = new RequestCycle(engine, parameters, serviceName, _environment); _requestGlobals.store(cycle); try { _requestGlobals.store(_responseDelegateFactory.getResponseBuilder(cycle)); cycle.setResponseBuilder(_requestGlobals.getResponseBuilder()); } catch (IOException e) { throw new ApplicationRuntimeException("Error creating response builder.", e); } return cycle; }