PortletRequestBridge(Bridge bridge, Phase phase, Rq req, Rs resp, PortletConfig config, ControllerHandler<?> target, Map<String, String[]> parameters) { // Map<String, RequestParameter> requestParameters = Collections.emptyMap(); for (Map.Entry<String, String[]> parameter : parameters.entrySet()) { if (requestParameters.isEmpty()) { requestParameters = new HashMap<String, RequestParameter>(); } RequestParameter.create(parameter).appendTo(requestParameters); } // this.phase = phase; this.bridge = bridge; this.req = req; this.resp = resp; this.target = target; this.requestParameters = requestParameters; this.httpContext = new PortletHttpContext(req); this.securityContext = new PortletSecurityContext(req); this.windowContext = new PortletWindowContext(this); this.userContext = new PortletUserContext(req); this.applicationContext = new PortletApplicationContext(config); }
PortletRequestBridge(Bridge bridge, Phase phase, Rq req, Rs resp, PortletConfig config, ControllerHandler<?> target, Map<String, String[]> parameters) { // Map<String, RequestParameter> requestParameters = Collections.emptyMap(); for (Map.Entry<String, String[]> parameter : parameters.entrySet()) { if (requestParameters.isEmpty()) { requestParameters = new HashMap<String, RequestParameter>(); } RequestParameter.create(parameter).appendTo(requestParameters); } // this.phase = phase; this.bridge = bridge; this.req = req; this.resp = resp; this.target = target; this.requestParameters = requestParameters; this.httpContext = new PortletHttpContext(req); this.securityContext = new PortletSecurityContext(req); this.windowContext = new PortletWindowContext(this); this.userContext = new PortletUserContext(req); this.applicationContext = new PortletApplicationContext(config); }
public MockRequestBridge(ApplicationRuntime<?, ?> application, MockClient client, Phase phase, MethodHandle target, Map<String, String[]> parameters) { // Map<String, RequestParameter> requestParameters = Collections.emptyMap(); for (Map.Entry<String, String[]> parameter : parameters.entrySet()) { if (requestParameters.isEmpty()) { requestParameters = new HashMap<String, RequestParameter>(); } RequestParameter.create(parameter).appendTo(requestParameters); } // ServletScopedContext attributes = new ServletScopedContext(Logger.SYSTEM) { @Override public void close() { attributesHistory.addAll(Tools.list(MockRequestBridge.this.attributes)); super.close(); } }; // this.application = application; this.client = client; this.target = target; this.attributes = attributes; this.httpContext = new MockHttpContext(); this.securityContext = new MockSecurityContext(client); this.windowContext = new MockWindowContext(); this.attributesHistory = new ArrayList<Scoped>(); this.requestParameters = requestParameters; this.phase = phase; }
public MockRequestBridge(ApplicationRuntime<?, ?> application, MockClient client, Phase phase, MethodHandle target, Map<String, String[]> parameters) { // Map<String, RequestParameter> requestParameters = Collections.emptyMap(); for (Map.Entry<String, String[]> parameter : parameters.entrySet()) { if (requestParameters.isEmpty()) { requestParameters = new HashMap<String, RequestParameter>(); } RequestParameter.create(parameter).appendTo(requestParameters); } // ServletScopedContext attributes = new ServletScopedContext(Logger.SYSTEM) { @Override public void close() { attributesHistory.addAll(Tools.list(MockRequestBridge.this.attributes)); super.close(); } }; // this.application = application; this.client = client; this.target = target; this.attributes = attributes; this.httpContext = new MockHttpContext(); this.securityContext = new MockSecurityContext(client); this.windowContext = new MockWindowContext(); this.attributesHistory = new ArrayList<Scoped>(); this.requestParameters = requestParameters; this.phase = phase; }