List of usage examples for org.apache.wicket.protocol.http IRequestLogger objectCreated
void objectCreated(Object value);
From source file:bugs.HttpSessionStoreModified.java
License:Apache License
/** * @see org.apache.wicket.session.ISessionStore#setAttribute(org.apache.wicket.request.Request, * java.lang.String, java.io.Serializable) *//* w ww. j a v a 2 s . c o m*/ @Override public final void setAttribute(final Request request, final String name, final Serializable value) { // ignore call if the session was marked invalid HttpSession httpSession = getHttpSession(request, false); if (httpSession != null) { String attributeName = getSessionAttributePrefix(request) + name; IRequestLogger logger = Application.get().getRequestLogger(); if (logger != null) { if (httpSession.getAttribute(attributeName) == null) { logger.objectCreated(value); } else { logger.objectUpdated(value); } } setValueInternal(httpSession, value, attributeName); } }
From source file:com.mastfrog.acteur.wicket.ActeurSessionStore.java
License:Apache License
/** * @see/* w w w . j a va 2s . com*/ * org.apache.wicket.session.ISessionStore#setAttribute(org.apache.wicket.request.Request, * java.lang.String, java.io.Serializable) */ @Override public final void setAttribute(final Request request, final String name, final Serializable value) { // ignore call if the session was marked invalid SessionImpl httpSession = getHttpSession(request, false); if (httpSession != null) { String attributeName = getSessionAttributePrefix(request) + name; IRequestLogger logger = Application.get().getRequestLogger(); if (logger != null) { if (httpSession.getAttribute(attributeName) == null) { logger.objectCreated(value); } else { logger.objectUpdated(value); } } httpSession.setAttribute(attributeName, value); } }