private static String normalizeDomain ( String value ) { if ( value . startsWith ( "." ) ) { return value . substring ( 1 ) ; } return value . toLowerCase ( ) ; }
Parse cookie domain . In RFC 6265 the leading dot will be ignored and cookie always available in sub domains .