public void updated ( Dictionary < ? , ? > props ) { String value = ( String ) props . get ( PROP_IDNAME ) ; if ( null != value ) { this . idName = value . trim ( ) ; } value = ( String ) props . get ( PROP_USE_URLS ) ; if ( null != value && Boolean . parseBoolean ( value . trim ( ) ) ) { this . urlRewritingMarker = ";" + getIDName ( ) + "=" + getSessionVersion ( ) ; } value = ( String ) props . get ( PROP_USE_COOKIES ) ; if ( null != value ) { this . enableCookies = Boolean . parseBoolean ( value . trim ( ) ) ; } if ( this . enableCookies ) { // we're using cookies for session information value = ( String ) props . get ( PROP_COOKIE_SECURE ) ; if ( null != value ) { this . cookieSecure = Boolean . parseBoolean ( value . trim ( ) ) ; } value = ( String ) props . get ( PROP_COOKIE_PATH ) ; if ( null != value ) { this . cookiePath = value . trim ( ) ; } value = ( String ) props . get ( PROP_COOKIE_DOMAIN ) ; if ( null != value ) { this . cookieDomain = value . trim ( ) ; } value = ( String ) props . get ( PROP_COOKIE_MAXAGE ) ; if ( null != value ) { try { this . cookieMaxAge = Integer . parseInt ( value . trim ( ) ) ; } catch ( NumberFormatException nfe ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Ignoring incorrect max-age [" + value + "]" , nfe . getMessage ( ) ) ; } } } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Config: id name [" + this . idName + "]" ) ; if ( isURLRewriting ( ) ) { Tr . event ( tc , "Config: use URL rewriting [" + this . urlRewritingMarker + "]" ) ; } if ( this . enableCookies ) { Tr . event ( tc , "Config: cookie max-age [" + this . cookieMaxAge + "]" ) ; Tr . event ( tc , "Config: cookie secure [" + this . cookieSecure + "]" ) ; Tr . event ( tc , "Config: cookie domain [" + this . cookieDomain + "]" ) ; Tr . event ( tc , "Config: cookie path [" + this . cookiePath + "]" ) ; } else { Tr . event ( tc , "Config: cookies disabled" ) ; } } }
Session configuration has been updated with the provided properties .