Code example for Cookie

Methods: getClass, getDomain, getExpiryDate, getName, getPath, getVersion

0
    // BEGIN android-added 
    /** 
     * Don't log the cookie's value; that's potentially sensitive information. 
     */ 
    private String cookieToString(Cookie cookie) {
        return cookie.getClass().getSimpleName()
                + "[version=" + cookie.getVersion()
                + ",name=" + cookie.getName()
                + ",domain=" + cookie.getDomain()
                + ",path=" + cookie.getPath()
                + ",expiry=" + cookie.getExpiryDate()
                + "]"; 
    } 
    // END android-added 
}