public static DefaultCookie convertWisdomCookieToNettyCookie ( Cookie cookie ) { DefaultCookie nettyCookie = new DefaultCookie ( cookie . name ( ) , cookie . value ( ) ) ; nettyCookie . setMaxAge ( cookie . maxAge ( ) ) ; // Comments are not supported anymore by netty. if ( cookie . domain ( ) != null ) { nettyCookie . setDomain ( cookie . domain ( ) ) ; } if ( cookie . isSecure ( ) ) { nettyCookie . setSecure ( true ) ; } if ( cookie . path ( ) != null ) { nettyCookie . setPath ( cookie . path ( ) ) ; } if ( cookie . isHttpOnly ( ) ) { nettyCookie . setHttpOnly ( true ) ; } return nettyCookie ; }
Converts the Wisdom s cookie to a Netty s cookie .