![JAR search and dependency download from the Maven repository](/logo.png)
org.loom.appengine.scope.MemcacheFlashContextWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of loom-appengine Show documentation
Show all versions of loom-appengine Show documentation
Uploads all artifacts belonging to configuration ':archives'.
The newest version!
package org.loom.appengine.scope;
import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.http.HttpServletRequest;
import org.loom.servlet.names.RequestAttributeNames;
/**
* Writes the flash context to memcache
* @author icoloma
*
*/
public class MemcacheFlashContextWriter implements ServletRequestListener {
@Override
public void requestDestroyed(ServletRequestEvent event) {
HttpServletRequest servletRequest = (HttpServletRequest) event.getServletRequest();
MemcacheFlashContext context = (MemcacheFlashContext) servletRequest.getAttribute(RequestAttributeNames.FLASH_NEXT);
if (context != null) {
context.store();
}
}
@Override
public void requestInitialized(ServletRequestEvent event) {
// empty
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy