String returnURL = session.remove(returnURLParam); if (returnURL != null) {
/** * Remove some data from the session * @param key the key of the data * @return the data that was there or null if none there */ public <T> T remove(String key) { T ret = (T) delegate.remove(key); return ret; }
@Override public void remove(String key) { vertxSession.remove(key); } }
/** * Remove some data from the session * @param key the key of the data * @return the data that was there or null if none there */ public <T> T remove(String key) { T ret = (T) delegate.remove(key); return ret; }
@Override public void remove(String key) { vertxSession.remove(key); } }
/** * Remove a current user from the session, if set * * @param context */ public static final void removeCurrentUser(RoutingContext context) { context.session().remove(IAuthenticatable.CURRENT_USER_PROPERTY); }
public static <T>java.lang.Object remove(io.vertx.ext.web.Session j_receiver, java.lang.String key) { return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.remove(key)); } }
/** * Perform a logout, means. removes current user and user infos from context and session * * @param context */ public static final void logout(RoutingContext context) { context.clearUser(); if (context.session() != null) { context.session().remove(USER_PROPERTY_BT); removeCurrentUser(context); } }
private boolean redirectBySession(RoutingContext context) { if (context.session() != null) { String returnURL = context.session().remove(returnURLParam); if (returnURL != null) { // Now redirect back to the original url RequestUtil.sendRedirect(context.response(), context.request(), returnURL); return true; } } return false; }
String returnURL = session.remove(returnURLParam); if (returnURL != null) {