List<Cookie> getCookies(String domain) {
        cookieManager.removeExpiredCookie();
        String cookies = cookieManager.getCookie(domain);
        List<Cookie> result = new LinkedList<Cookie>();
        if (cookies == null) {
            return result;
        }
        for (String cookie : cookies.split(COOKIE_SEPARATOR)) {
            String[] cookieValues = cookie.split("=",2);
            if (cookieValues.length >= 2) {
                result.add(new Cookie(cookieValues[0].trim(), cookieValues[1], domain, null, null));
            }
        }
        return result;
    }
Gets all cookies for a given domain name

@param domain Domain name to fetch cookies for
@return Set of cookie objects for given domain
selendroid-server/src/main/java/io/selendroid/server/model/SessionCookieManager.java