/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. */ protected void internalDestroy() { // destroy the resource watcher ModificationWatcher resourceWatcher = getResourceSettings().getResourceWatcher(false); if (resourceWatcher != null) { resourceWatcher.destroy(); } super.internalDestroy(); bufferedResponses.clear(); getSessionStore().destroy(); FileCleaner.destroy(); }
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. */ @Override protected void internalDestroy() { // destroy the resource watcher IModificationWatcher resourceWatcher = getResourceSettings().getResourceWatcher(false); if (resourceWatcher != null) { resourceWatcher.destroy(); } super.internalDestroy(); bufferedResponses.clear(); getSessionStore().destroy(); FileCleaner.destroy(); }
/** * Creates and registers an {@code EventBus} for the given application and broadcaster * * @param application * @param broadcaster */ public EventBus(WebApplication application, Broadcaster broadcaster) { this.application = application; this.broadcaster = broadcaster; application.setMetaData(EVENT_BUS_KEY, this); application.mount(new AtmosphereRequestMapper(createEventSubscriptionInvoker())); application.getComponentPostOnBeforeRenderListeners().add( createEventSubscriptionCollector()); application.getSessionStore().registerUnboundListener(this); }
ISessionStore sessionStore = webApplication.getSessionStore(); String sessionId = sessionStore.getSessionId(request, false); if (sessionId != null)
ISessionStore sessionStore = webApplication.getSessionStore(); String sessionId = sessionStore.getSessionId(request, false); if (sessionId != null)
/** * Reset the request and the response back to a starting state and recreate the necessary wicket * request, response and session objects. The request and response objects can be accessed and * Initialized at this point. * * @param isAjax * indicates whether the request should be initialized as an ajax request (ajax * header "Wicket-Ajax" is set) */ public WebRequestCycle setupRequestAndResponse(boolean isAjax) { servletRequest.initialize(); servletResponse.initialize(); servletRequest.setParameters(parametersForNextRequest); if (isAjax) { servletRequest.addHeader("Wicket-Ajax", "Yes"); } parametersForNextRequest.clear(); wicketRequest = application.newWebRequest(servletRequest); wicketResponse = application.newWebResponse(servletResponse); WebRequestCycle requestCycle = createRequestCycle(); if (!initializeHttpSessionAsTemporary()) application.getSessionStore().bind(wicketRequest, wicketSession); wicketResponse.setAjax(wicketRequest.isAjax()); return requestCycle; }
if (!initializeHttpSessionAsTemporary()) application.getSessionStore().bind(wicketRequest, wicketSession);
/** * Creates and registers an {@code EventBus} for the given application and broadcaster * * @param application * @param broadcaster */ public EventBus(WebApplication application, Broadcaster broadcaster) { this.application = application; this.broadcaster = broadcaster; application.setMetaData(EVENT_BUS_KEY, this); application.mount(new AtmosphereRequestMapper(createEventSubscriptionInvoker())); application.getComponentPostOnBeforeRenderListeners().add( createEventSubscriptionCollector()); application.getSessionStore().registerUnboundListener(this); checkEnabledAnalytics(getBroadcaster().getBroadcasterConfig().getAtmosphereConfig()); }
if (oldSession == null || message instanceof IWebSocketPushMessage) ISessionStore sessionStore = application.getSessionStore(); session = sessionStore.lookup(webRequest); ThreadContext.setSession(session);
if (oldSession == null || message instanceof IWebSocketPushMessage) ISessionStore sessionStore = application.getSessionStore(); session = sessionStore.lookup(webRequest); ThreadContext.setSession(session);
if (oldSession == null || message instanceof IWebSocketPushMessage) ISessionStore sessionStore = application.getSessionStore(); session = sessionStore.lookup(webRequest); ThreadContext.setSession(session);
application.getSessionStore().registerUnboundListener(sessionId -> newSession());
application.getSessionStore().registerUnboundListener(sessionId -> newSession());