httpServletResponse); RequestCycle requestCycle = application.createRequestCycle(webRequest, webResponse); res = processRequestCycle(requestCycle, webResponse, httpServletRequest, httpServletResponse, chain);
httpServletResponse); RequestCycle requestCycle = application.createRequestCycle(webRequest, webResponse); res = processRequestCycle(requestCycle, webResponse, httpServletRequest, httpServletResponse, chain);
private void post(AtmosphereResource resource, PageKey pageKey, Collection<EventSubscription> subscriptionsForPage, AtmosphereEvent event) { String filterPath = WebApplication.get() .getWicketFilter() .getFilterConfig() .getInitParameter(WicketFilter.FILTER_MAPPING_PARAM); filterPath = filterPath.substring(1, filterPath.length() - 1); HttpServletRequest httpRequest = new HttpServletRequestWrapper(resource.getRequest()) { @Override public String getContextPath() { String ret = super.getContextPath(); return ret == null ? "" : ret; } }; AtmosphereWebRequest request = new AtmosphereWebRequest( (ServletWebRequest)application.newWebRequest(httpRequest, filterPath), pageKey, subscriptionsForPage, event); Response response = new AtmosphereWebResponse(resource.getResponse()); if (application.createRequestCycle(request, response).processRequestAndDetach()) broadcaster.broadcast(response.toString(), resource); }
private void post(AtmosphereResource resource, PageKey pageKey, Iterator<EventSubscription> subscriptionsForPage, AtmosphereEvent event) { String filterPath = WebApplication.get() .getWicketFilter() .getFilterConfig() .getInitParameter(WicketFilter.FILTER_MAPPING_PARAM); filterPath = filterPath.substring(1, filterPath.length() - 1); HttpServletRequest httpRequest = new HttpServletRequestWrapper(resource.getRequest()) { @Override public String getContextPath() { String ret = super.getContextPath(); return ret == null ? "" : ret; } }; AtmosphereWebRequest request = new AtmosphereWebRequest( (ServletWebRequest)application.newWebRequest(httpRequest, filterPath), pageKey, subscriptionsForPage, event); Response response = new AtmosphereWebResponse(resource.getResponse()); if (application.createRequestCycle(request, response).processRequestAndDetach()) getBroadcaster().broadcast(response.toString(), resource); }
ThreadContext.setRequestCycle(webApplication.createRequestCycle(request, response));
requestCycle = application.createRequestCycle(servletWebRequest, newServletWebResponse(servletWebRequest)); ThreadContext.setRequestCycle(requestCycle);
requestCycle = application.createRequestCycle(servletWebRequest, newServletWebResponse(servletWebRequest)); ThreadContext.setRequestCycle(requestCycle);