public void setAttribute(String name, Object value) { int action = (value==null)?ACTION_REMOVE:ACTION_SET; addAction(TYPE_ATTRIBUTE,action,name,value); }
public void removeAttribute(String name) { int action = ACTION_REMOVE; addAction(TYPE_ATTRIBUTE,action,name,null); }
public void removeAttribute(String name) { addAction(TYPE_ATTRIBUTE, ACTION_REMOVE, name, null); }
public void setAttribute(String name, Object value) { int action = (value==null)?ACTION_REMOVE:ACTION_SET; addAction(TYPE_ATTRIBUTE,action,name,value); }
public void setAuthType(String authType) { int action = (authType==null)?ACTION_REMOVE:ACTION_SET; addAction(TYPE_AUTHTYPE,action,NAME_AUTHTYPE, authType); }
public void setAttribute(String name, Object value) { int action = (value==null)?ACTION_REMOVE:ACTION_SET; addAction(TYPE_ATTRIBUTE,action,name,value); }
public void setAuthType(String authType) { int action = (authType==null)?ACTION_REMOVE:ACTION_SET; addAction(TYPE_AUTHTYPE,action,NAME_AUTHTYPE, authType); }
public void removeAttribute(String name) { int action = ACTION_REMOVE; addAction(TYPE_ATTRIBUTE,action,name,null); }
public void removeSessionListener(SessionListener listener) { addAction(TYPE_LISTENER, ACTION_REMOVE, NAME_LISTENER ,listener); }
public void setAuthType(String authType) { int action = (authType==null)?ACTION_REMOVE:ACTION_SET; addAction(TYPE_AUTHTYPE,action,NAME_AUTHTYPE, authType); }
public void addSessionListener(SessionListener listener) { addAction(TYPE_LISTENER, ACTION_SET, NAME_LISTENER ,listener); }
public void setNew(boolean n) { int action = ACTION_SET; addAction(TYPE_ISNEW,action,NAME_ISNEW,Boolean.valueOf(n)); }
public void setNew(boolean n) { int action = ACTION_SET; addAction(TYPE_ISNEW,action,NAME_ISNEW,Boolean.valueOf(n)); }
public void setMaxInactiveInterval(int interval) { int action = ACTION_SET; addAction(TYPE_MAXINTERVAL,action,NAME_MAXINTERVAL,Integer.valueOf(interval)); }
public void setMaxInactiveInterval(int interval) { int action = ACTION_SET; addAction(TYPE_MAXINTERVAL,action,NAME_MAXINTERVAL,Integer.valueOf(interval)); }
public void setNew(boolean n) { int action = ACTION_SET; addAction(TYPE_ISNEW,action,NAME_ISNEW,Boolean.valueOf(n)); }
public void setMaxInactiveInterval(int interval) { addAction(TYPE_MAXINTERVAL, ACTION_SET, NAME_MAXINTERVAL, Integer.valueOf(interval)); }
/** * Only support principals from type {@link GenericPrincipal GenericPrincipal} * @param p Session principal * @see GenericPrincipal */ public void setPrincipal(Principal p) { int action = (p==null)?ACTION_REMOVE:ACTION_SET; GenericPrincipal gp = null; if (p != null) { if (p instanceof GenericPrincipal) { gp = (GenericPrincipal) p; if(log.isDebugEnabled()) log.debug(sm.getString("deltaRequest.showPrincipal", p.getName() , getSessionId())); } else log.error(sm.getString("deltaRequest.wrongPrincipalClass",p.getClass().getName())); } addAction(TYPE_PRINCIPAL, action, NAME_PRINCIPAL, gp); }
/** * convert principal at SerializablePrincipal for backup nodes. * Only support principals from type {@link GenericPrincipal GenericPrincipal} * @param p Session principal * @see GenericPrincipal */ public void setPrincipal(Principal p) { int action = (p==null)?ACTION_REMOVE:ACTION_SET; SerializablePrincipal sp = null; if ( p != null ) { if(p instanceof GenericPrincipal) { sp = SerializablePrincipal.createPrincipal((GenericPrincipal)p); if(log.isDebugEnabled()) log.debug(sm.getString("deltaRequest.showPrincipal", p.getName() , getSessionId())); } else log.error(sm.getString("deltaRequest.wrongPrincipalClass",p.getClass().getName())); } addAction(TYPE_PRINCIPAL,action,NAME_PRINCIPAL,sp); }
/** * convert principal at SerializablePrincipal for backup nodes. * Only support principals from type {@link GenericPrincipal GenericPrincipal} * @param p Session principal * @see GenericPrincipal */ public void setPrincipal(Principal p) { int action = (p==null)?ACTION_REMOVE:ACTION_SET; SerializablePrincipal sp = null; if ( p != null ) { if(p instanceof GenericPrincipal) { sp = SerializablePrincipal.createPrincipal((GenericPrincipal)p); if(log.isDebugEnabled()) log.debug(sm.getString("deltaRequest.showPrincipal", p.getName() , getSessionId())); } else log.error(sm.getString("deltaRequest.wrongPrincipalClass",p.getClass().getName())); } addAction(TYPE_PRINCIPAL,action,NAME_PRINCIPAL,sp); }