/** * Standard constructor used to render a response page. * * @param engine * the current request's engine * @param parameters * query parameters (possibly the result of {@link ServiceEncoder}s decoding path * information) * @param serviceName * the name of engine service * @param environment * additional invariant services and objects needed by each RequestCycle instance */ public RequestCycle(IEngine engine, QueryParameterMap parameters, String serviceName, RequestCycleEnvironment environment) { // Variant from instance to instance _engine = engine; _parameters = parameters; _serviceName = serviceName; // Invariant from instance to instance _infrastructure = environment.getInfrastructure(); _pageSource = _infrastructure.getPageSource(); _strategySource = environment.getStrategySource(); _absoluteURLBuilder = environment.getAbsoluteURLBuilder(); _log = new ErrorLogImpl(environment.getErrorHandler(), LOG); }
/** * Standard constructor used to render a response page. * * @param engine * the current request's engine * @param parameters * query parameters (possibly the result of {@link ServiceEncoder}s decoding path * information) * @param serviceName * the name of engine service * @param environment * additional invariant services and objects needed by each RequestCycle instance */ public RequestCycle(IEngine engine, QueryParameterMap parameters, String serviceName, RequestCycleEnvironment environment) { // Variant from instance to instance _engine = engine; _parameters = parameters; _serviceName = serviceName; // Invariant from instance to instance _infrastructure = environment.getInfrastructure(); _pageSource = _infrastructure.getPageSource(); _strategySource = environment.getStrategySource(); _absoluteURLBuilder = environment.getAbsoluteURLBuilder(); _log = new ErrorLogImpl(environment.getErrorHandler(), LOG); }